Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | ||
|
Check failure on line 1 in .github/workflows/build.yml
|
||
| 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()" | ||