diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6603ac0..4a7d2fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: path: jason - name: Setup Nim - uses: alaviss/setup-nim@0.1.0 + uses: alaviss/setup-nim@0.1.1 with: path: nim version: ${{ matrix.branch }} diff --git a/jason.nimble b/jason.nimble index 845dd10..977a45e 100644 --- a/jason.nimble +++ b/jason.nimble @@ -3,31 +3,15 @@ author = "disruptek" description = "compile-time json" license = "MIT" -requires "nim >= 1.3.5 & < 2.0.0" -requires "https://github.com/disruptek/testes >= 0.3.2 & < 1.0.0" +requires "nim >= 1.4.0 & < 2.0.0" +requires "https://github.com/disruptek/testes >= 0.7.3 & < 1.0.0" requires "https://github.com/disruptek/criterion < 1.0.0" -proc execCmd(cmd: string) = - echo "exec: " & cmd - exec cmd - -proc execTest(test: string) = - when getEnv("GITHUB_ACTIONS", "false") != "true": - execCmd "nim c -f -r " & test - when (NimMajor, NimMinor) >= (1, 2): - execCmd "nim cpp --gc:arc -d:danger -f -r " & test - else: - execCmd "nim c -r " & test - execCmd "nim cpp -r " & test - execCmd "nim c -d:danger -r " & test - execCmd "nim cpp -d:danger -r " & test - when (NimMajor, NimMinor) >= (1, 2): - execCmd "nim c --useVersion:1.0 -d:danger -r " & test - execCmd "nim c --gc:arc -d:danger -r " & test - execCmd "nim cpp --gc:arc -d:danger -r " & test - task test, "run tests for ci": - execTest("tests/test.nim") + when defined(windows): + exec "testes.cmd" + else: + exec findExe"testes" task demo, "generate benchmarks": exec """demo docs/bench.svg "nim c --out=\$1 --gc:arc --define:danger tests/bench.nim""""