Skip to content

Commit

Permalink
replace
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Mar 9, 2024
0 parents commit f75229a
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ubuntu-latest

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: "Build/Test" # contains slash so use quotes otherwise UB
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn
KLOG=3 ./mkn clean build test run -dtOa "-std=c++17 -fPIC"
19 changes: 19 additions & 0 deletions .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: macos-latest

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: "Build/Test" # contains slash so use quotes otherwise UB
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_osx
chmod +x mkn
KLOG=3 ./mkn clean build test run -dtOa "-std=c++17 -fPIC"
26 changes: 26 additions & 0 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: windows-latest

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

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

- name: "Build/Test" # contains slash so use quotes otherwise UB
shell: cmd
env:
MKN_CL_PREFERRED: 1
run: | # /bin/link interferes with cl/link.exe
bash -c "rm /bin/link"
bash -c "curl -Lo mkn.exe https://github.com/mkn/mkn/releases/download/latest/mkn.exe"
bash -c 'KLOG=3 ./mkn clean build run -dtKOp test -a "-EHsc -std:c++17"'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin
.mkn
tc
17 changes: 17 additions & 0 deletions mkn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#! clean build test run -O 2

name: time.ccronexpr
version: master
parent: lib

profile:
- name: lib
inc: tc
src: tc/ccronexpr.c
test: tc/ccronexpr_test.c
sub: tinycron&tc(https://github.com/exander77/supertinycron)

- name: stc
self: lib
main: tc/supertinycron.c
out: supertinycron

0 comments on commit f75229a

Please sign in to comment.