-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (69 loc) · 2.02 KB
/
build.yml
File metadata and controls
75 lines (69 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: build
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_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
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
- env:
MKN_CL_PREFERRED: 1
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