Skip to content

Commit f8c4cbb

Browse files
committed
++
1 parent d6db77a commit f8c4cbb

10 files changed

Lines changed: 1940 additions & 121 deletions

File tree

.github/workflows/build.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: build
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
env:
14+
MKN_KUL_GIT_CO: --depth 1
15+
16+
jobs:
17+
ubuntu:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
max-parallel: 4
22+
matrix:
23+
python-version: ['3.12', '3.13', '3.14']
24+
steps:
25+
- uses: actions/checkout@v6
26+
27+
- uses: actions/setup-python@v6
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
architecture: x64
31+
32+
- env:
33+
MKN_LIB_LINK_LIB: 1
34+
run: |
35+
curl -fL --retry 3 --retry-delay 2 -o mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
36+
chmod +x mkn
37+
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
38+
KLOG=2 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
39+
python3 -c "import test_module as tm; tm.lol()"
40+
41+
macos:
42+
runs-on: macos-latest
43+
strategy:
44+
fail-fast: false
45+
max-parallel: 4
46+
matrix:
47+
python-version: ['3.12', '3.13', '3.14']
48+
steps:
49+
- uses: actions/checkout@v6
50+
51+
- uses: actions/setup-python@v6
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
architecture: x64
55+
56+
- env:
57+
MKN_LIB_LINK_LIB: 1
58+
run: |
59+
curl -fL --retry 3 --retry-delay 2 -o mkn https://github.com/mkn/mkn/releases/download/latest/mkn_arm_osx
60+
chmod +x mkn
61+
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
62+
KLOG=2 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
63+
python3 -c "import test_module as tm; tm.lol()"
64+
65+
windows:
66+
runs-on: windows-latest
67+
strategy:
68+
fail-fast: false
69+
max-parallel: 4
70+
matrix:
71+
python-version: ['3.12', '3.13', '3.14']
72+
steps:
73+
- uses: actions/checkout@v6
74+
75+
- uses: actions/setup-python@v6
76+
with:
77+
python-version: ${{ matrix.python-version }}
78+
architecture: x64
79+
80+
- uses: ilammy/msvc-dev-cmd@v1
81+
with:
82+
arch: amd64
83+
84+
- env:
85+
MKN_CL_PREFERRED: 1
86+
shell: cmd
87+
run: | # /bin/link interferes with cl/link.exe
88+
bash -c "rm /bin/link"
89+
bash -c 'curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe'
90+
bash -c 'KLOG=2 ./mkn clean build run -dtOa "-EHsc -std:c++20"'
91+
bash -c 'KLOG=2 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"'
92+
bash -c 'KLOG=2 ./mkn clean build -dtOp test_module -a "-EHsc -std:c++20"'
93+
bash -c 'python3 -c "import test_module as tm; tm.lol()"'

.github/workflows/build_nix.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/build_osx.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/build_win.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.sublime-project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"folders" :
3+
[
4+
{
5+
"path" : "."
6+
}
7+
],
8+
"settings" :
9+
{
10+
"ClangFormat" :
11+
{
12+
"binary" : "clang-format",
13+
"format_on_save" : true,
14+
"style" : "file"
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)