Skip to content

Commit 7daaa08

Browse files
committed
++
1 parent d6db77a commit 7daaa08

10 files changed

Lines changed: 1982 additions & 121 deletions

File tree

.github/workflows/build.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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.12'] #, '3.13', '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+
python3 -c "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))"
38+
$CURL_GET -o mkn ${PATH_GET}/mkn_nix
39+
chmod +x mkn
40+
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
41+
KLOG=2 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
42+
python3 -c "import test_module as tm; tm.lol()"
43+
44+
# macos:
45+
# runs-on: macos-latest
46+
# strategy:
47+
# fail-fast: false
48+
# max-parallel: 4
49+
# matrix:
50+
# python-version: ['3.12', '3.13', '3.14']
51+
# steps:
52+
# - uses: actions/checkout@v6
53+
54+
# - uses: actions/setup-python@v6
55+
# with:
56+
# python-version: ${{ matrix.python-version }}
57+
# architecture: x64
58+
59+
# - env:
60+
# MKN_LIB_LINK_LIB: 1
61+
# run: |
62+
# python3 -c "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))"
63+
# curl -fL --retry 3 --retry-delay 2 -o mkn https://github.com/mkn/mkn/releases/download/latest/mkn_arm_osx
64+
# chmod +x mkn
65+
# KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
66+
# KLOG=2 ./mkn clean build -dtOa "-std=c++20 -fPIC" -p test_module
67+
# python3 -c "import test_module as tm; tm.lol()"
68+
69+
# windows:
70+
# runs-on: windows-latest
71+
# strategy:
72+
# fail-fast: false
73+
# max-parallel: 4
74+
# matrix:
75+
# python-version: ['3.12', '3.13', '3.14']
76+
# steps:
77+
# - uses: actions/checkout@v6
78+
79+
# - uses: actions/setup-python@v6
80+
# with:
81+
# python-version: ${{ matrix.python-version }}
82+
# architecture: x64
83+
84+
# - uses: ilammy/msvc-dev-cmd@v1
85+
# with:
86+
# arch: amd64
87+
88+
# - env:
89+
# MKN_CL_PREFERRED: 1
90+
# shell: cmd
91+
# run: | # /bin/link interferes with cl/link.exe
92+
# python3 -c "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))"
93+
# bash -c "rm /bin/link"
94+
# bash -c 'curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe'
95+
# bash -c 'KLOG=2 ./mkn clean build run -dtOa "-EHsc -std:c++20"'
96+
# bash -c 'KLOG=2 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"'
97+
# bash -c 'KLOG=2 ./mkn clean build -dtOp test_module -a "-EHsc -std:c++20"'
98+
# 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)