Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
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_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
steps:
- uses: actions/checkout@v4

- env:
MKN_KUL_GIT_CO: --depth 1
run: |
$CURL_GET -o mkn ${PATH_GET}/mkn_nix
chmod +x mkn
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
KLOG=2 ./mkn clean build run -dtOp test -a "-std=c++20 -fPIC"

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- env:
MKN_LIB_LINK_LIB: 1
MKN_KUL_GIT_CO: --depth 1
run: |
$CURL_GET -o mkn ${PATH_GET}/mkn_arm_osx
chmod +x mkn
KLOG=2 ./mkn clean build run -dtOa "-std=c++20 -fPIC"
KLOG=2 ./mkn clean build run -dtOp test -a "-std=c++20 -fPIC"

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64

- env:
MKN_KUL_GIT_CO: --depth 1
MKN_CL_PREFERRED: 1
shell: cmd
run: | # /bin/link interferes with cl/link.exe
bash -c "rm /bin/link"
bash -c '$CURL_GET -o mkn.exe ${PATH_GET}/mkn.exe'
bash -c 'KLOG=2 ./mkn clean build run -dtOa "-EHsc -std:c++20"'
bash -c 'KLOG=2 ./mkn clean build run -dtOp test -a "-EHsc -std:c++20"'
21 changes: 0 additions & 21 deletions .github/workflows/build_nix.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/build_osx.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/build_win.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .sublime-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"folders" :
[
{
"path" : "."
}
],
"settings" :
{
"ClangFormat" :
{
"binary" : "clang-format",
"format_on_save" : true,
"style" : "file"
}
}
}
3 changes: 3 additions & 0 deletions .sublime-project.sublime-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"project": ".sublime-project",
}
Loading
Loading