diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml new file mode 100644 index 0000000..f2c07f0 --- /dev/null +++ b/.github/workflows/build_nix.yml @@ -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" diff --git a/.github/workflows/build_osx.yml b/.github/workflows/build_osx.yml new file mode 100644 index 0000000..8fd30d2 --- /dev/null +++ b/.github/workflows/build_osx.yml @@ -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" diff --git a/.github/workflows/build_win.yml b/.github/workflows/build_win.yml new file mode 100644 index 0000000..ce2eada --- /dev/null +++ b/.github/workflows/build_win.yml @@ -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"' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f4aa9f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin +.mkn +tc diff --git a/mkn.yaml b/mkn.yaml new file mode 100644 index 0000000..5a47f1a --- /dev/null +++ b/mkn.yaml @@ -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