diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f881a14..3da8008 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: inputs: branch: - default: stable + default: '"stable"' concurrency: # Cancel stale PR builds (but not push builds) group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} @@ -18,23 +18,9 @@ jobs: strategy: fail-fast: false matrix: - target: - - os: linux - cpu: amd64 - TEST_LANG: c - - os: linux - cpu: amd64 - TEST_LANG: cpp - branch: ${{ fromJSON(format('[{0}]', inputs.branch || '"1.2.x","1.4.x","1.6.x","2.0.x", "devel"')) }} - include: - - target: - os: linux - shell: bash - defaults: - run: - shell: ${{ matrix.shell }} + branch: ${{ fromJSON(format('[{0}]', inputs.branch || '"1.2.0","1.2.x","1.4.2","1.4.x","1.6.0","1.6.x","2.0.0","2.0.x","stable","devel"')) }} - name: 'nim-${{matrix.branch}}-${{ matrix.target.TEST_LANG }}' + name: 'nim-${{matrix.branch}}' runs-on: ubuntu-latest steps: - name: Checkout @@ -48,5 +34,6 @@ jobs: - name: Run tests run: | nim --version - env TEST_LANG="${{ matrix.target.TEST_LANG }}" nimble test + env TEST_LANG="c" nimble test + env TEST_LANG="cpp" nimble test diff --git a/tests/test_results.nim b/tests/test_results.nim index 9637cea..9f6f90f 100644 --- a/tests/test_results.nim +++ b/tests/test_results.nim @@ -125,7 +125,7 @@ block: doAssert d.isErr # De-reference - when (NimMajor, NimMinor) >= (1, 6): + when (NimMajor, NimMinor, NimPatch) >= (1, 6, 12): {.warning[BareExcept]: off.} try: @@ -134,7 +134,7 @@ block: except: discard - when (NimMajor, NimMinor) >= (1, 6): + when (NimMajor, NimMinor, NimPatch) >= (1, 6, 12): {.warning[BareExcept]: on.} # Comparisons