Skip to content

Commit 442ef4b

Browse files
committed
++
1 parent 6fd3d4f commit 442ef4b

1 file changed

Lines changed: 14 additions & 28 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
branches: [ master ]
1212

1313
env:
14+
MKN_LIB_LINK_LIB: 1
1415
MKN_KUL_GIT_CO: --depth 1
1516
CURL_GET: curl -fL --retry 3 --retry-delay 2
1617
PATH_GET: https://github.com/mkn/mkn/releases/download/latest
@@ -19,21 +20,15 @@ jobs:
1920
ubuntu:
2021
runs-on: ubuntu-latest
2122
strategy:
22-
fail-fast: false
23-
max-parallel: 4
2423
matrix:
2524
python-version: ['3.14']
2625
steps:
2726
- uses: actions/checkout@v6
28-
2927
- uses: actions/setup-python@v6
3028
with:
3129
python-version: ${{ matrix.python-version }}
32-
architecture: x64
33-
34-
- env:
35-
MKN_LIB_LINK_LIB: 1
36-
run: |
30+
- run: |
31+
set -ex
3732
$CURL_GET -o mkn ${PATH_GET}/mkn_nix
3833
chmod +x mkn
3934
KLOG=3 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
@@ -43,53 +38,44 @@ jobs:
4338
macos:
4439
runs-on: macos-latest
4540
strategy:
46-
fail-fast: false
47-
max-parallel: 4
4841
matrix:
4942
python-version: ['3.14']
5043
steps:
5144
- uses: actions/checkout@v6
52-
5345
- uses: actions/setup-python@v6
5446
with:
5547
python-version: ${{ matrix.python-version }}
56-
architecture: x64
57-
5848
- env:
59-
MKN_LIB_LINK_LIB: 1
49+
MKN_PYTHON_LIB_EMBED: 1
6050
run: |
51+
set -ex
6152
$CURL_GET -o mkn ${PATH_GET}/mkn_arm_osx
6253
chmod +x mkn
6354
KLOG=3 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
55+
KLOG=3 ./mkn clean build run -dtOa "-std=c++20 -fPIC" -p test
6456
KLOG=3 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
6557
python3 -c "import test_module as tm; tm.lol()"
6658
6759
windows:
6860
runs-on: windows-latest
6961
strategy:
70-
fail-fast: false
71-
max-parallel: 4
7262
matrix:
7363
python-version: ['3.14']
7464
steps:
7565
- uses: actions/checkout@v6
76-
7766
- uses: actions/setup-python@v6
7867
with:
7968
python-version: ${{ matrix.python-version }}
80-
architecture: x64
81-
8269
- uses: ilammy/msvc-dev-cmd@v1
83-
with:
84-
arch: amd64
85-
8670
- env:
71+
MKN_PYTHON_LIB_EMBED: 1
8772
MKN_CL_PREFERRED: 1
88-
shell: cmd
73+
shell: bash
8974
run: | # /bin/link interferes with cl/link.exe
90-
bash -c "rm /bin/link"
91-
bash -c '$CURL_GET -o mkn.exe ${PATH_GET}/mkn.exe'
92-
bash -c 'KLOG=3 ./mkn clean build run -dtOa "-EHsc -std:c++20"'
93-
bash -c 'KLOG=3 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"'
94-
bash -c 'KLOG=3 ./mkn clean build -dtOa "-std:c++20 -EHsc" -p test_module'
75+
set -ex
76+
rm /bin/link
77+
$CURL_GET -o mkn.exe ${PATH_GET}/mkn.exe
78+
KLOG=3 ./mkn clean build run -dtOa "-EHsc -std:c++20"
79+
KLOG=3 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"
80+
KLOG=3 ./mkn clean build -dtOa "-std:c++20 -EHsc" -p test_module
9581
python3 -c "import test_module as tm; tm.lol()"

0 commit comments

Comments
 (0)