Skip to content

Commit 02fca23

Browse files
committed
++
1 parent d6db77a commit 02fca23

10 files changed

Lines changed: 1979 additions & 121 deletions

File tree

.github/workflows/build.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
CURL_GET: curl -fL --retry 3 --retry-delay 2
16+
PATH_GET: https://github.com/mkn/mkn/releases/download/latest
17+
18+
jobs:
19+
ubuntu:
20+
runs-on: ubuntu-latest
21+
strategy:
22+
fail-fast: false
23+
max-parallel: 4
24+
matrix:
25+
python-version: ['3.14']
26+
steps:
27+
- uses: actions/checkout@v6
28+
29+
- uses: actions/setup-python@v6
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
architecture: x64
33+
34+
- env:
35+
MKN_LIB_LINK_LIB: 1
36+
run: |
37+
$CURL_GET -o mkn ${PATH_GET}/mkn_nix
38+
chmod +x mkn
39+
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
40+
KLOG=2 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
41+
python3 -c "import test_module as tm; tm.lol()"
42+
43+
macos:
44+
runs-on: macos-latest
45+
strategy:
46+
fail-fast: false
47+
max-parallel: 4
48+
matrix:
49+
python-version: ['3.14']
50+
steps:
51+
- uses: actions/checkout@v6
52+
53+
- uses: actions/setup-python@v6
54+
with:
55+
python-version: ${{ matrix.python-version }}
56+
architecture: x64
57+
58+
- env:
59+
MKN_LIB_LINK_LIB: 1
60+
run: |
61+
$CURL_GET -o mkn ${PATH_GET}/mkn_arm_osx
62+
chmod +x mkn
63+
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
64+
KLOG=2 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
65+
python3 -c "import test_module as tm; tm.lol()"
66+
67+
windows:
68+
runs-on: windows-latest
69+
strategy:
70+
fail-fast: false
71+
max-parallel: 4
72+
matrix:
73+
python-version: ['3.14']
74+
steps:
75+
- uses: actions/checkout@v6
76+
77+
- uses: actions/setup-python@v6
78+
with:
79+
python-version: ${{ matrix.python-version }}
80+
architecture: x64
81+
82+
- uses: ilammy/msvc-dev-cmd@v1
83+
with:
84+
arch: amd64
85+
86+
- env:
87+
MKN_CL_PREFERRED: 1
88+
shell: cmd
89+
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=2 ./mkn clean build run -dtOa "-EHsc -std:c++20"'
93+
bash -c 'KLOG=2 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"'
94+
bash -c 'KLOG=2 ./mkn clean build -dtOp test_module -a "-EHsc -std:c++20"'
95+
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)