Skip to content

++

++ #30

Workflow file for this run

name: build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 31, Col: 7): Unexpected value 'run', (Line: 49, Col: 7): Unexpected value 'run', (Line: 69, Col: 7): Unexpected value 'shell', (Line: 70, Col: 7): Unexpected value 'run'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MKN_LIB_LINK_LIB: 1
MKN_PYTHON_LIB_EMBED: 1
MKN_KUL_GIT_CO: --depth 1
CURL_GET: curl -fL --retry 3 --retry-delay 2
PATH_GET: https://github.com/mkn/mkn/releases/download/latest
jobs:
ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
run: |
set -ex
$CURL_GET -o mkn ${PATH_GET}/mkn_nix
chmod +x mkn
KLOG=3 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
KLOG=3 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
python3 -c "import test_module as tm; tm.lol()"
macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
run: |
set -ex
$CURL_GET -o mkn ${PATH_GET}/mkn_arm_osx
chmod +x mkn
KLOG=3 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
KLOG=3 ./mkn clean build run -dtOa "-std=c++20 -fPIC" -p test
KLOG=3 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
python3 -c "import test_module as tm; tm.lol()"
windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: ilammy/msvc-dev-cmd@v1
shell: bash
run: | # /bin/link interferes with cl/link.exe
set -ex
rm /bin/link
$CURL_GET -o mkn.exe ${PATH_GET}/mkn.exe
KLOG=3 ./mkn clean build run -dtOa "-EHsc -std:c++20"
KLOG=3 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"
KLOG=3 ./mkn clean build -dtOa "-std:c++20 -EHsc" -p test_module
python3 -c "import test_module as tm; tm.lol()"