* [ci] Use Nim version 1.6.10 instead of version-1-6

* [ci] use nimbus-build-system branch support-shallow-checkout
This commit is contained in:
markspanbroek 2023-02-06 17:15:02 +01:00 committed by GitHub
parent df729be261
commit 82e7a2dde6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -9,7 +9,7 @@ inputs:
cpu:
description: "CPU to build for"
default: "amd64"
nim_branch:
nim_version:
description: "Nim version"
default: "version-1-6"
shell:
@ -153,12 +153,12 @@ runs:
uses: actions/cache@v3
with:
path: NimBinaries
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
restore-keys: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ env.cache_nonce }}
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_version }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
restore-keys: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_version }}-cache-${{ env.cache_nonce }}
- name: Set NIM_COMMIT
shell: ${{ inputs.shell }} {0}
run: echo "NIM_COMMIT=${{ inputs.nim_branch }}" >> ${GITHUB_ENV}
run: echo "NIM_COMMIT=${{ inputs.nim_version }}" >> ${GITHUB_ENV}
- name: Build Nim and Codex dependencies
shell: ${{ inputs.shell }} {0}

View File

@ -7,6 +7,7 @@ on:
workflow_dispatch:
env:
cache_nonce: 0 # Allows for easily busting actions/cache caches
nim_version: v1.6.10
jobs:
build:
strategy:
@ -41,6 +42,7 @@ jobs:
with:
os: ${{ matrix.os }}
shell: ${{ matrix.shell }}
nim_version: ${{ env.nim_version }}
- name: Unit tests
run: make -j${ncpu} test
@ -73,6 +75,7 @@ jobs:
uses: ./.github/actions/nimbus-build-system
with:
os: linux
nim_version: ${{ env.nim_version }}
- name: Generate coverage data
run: make -j${ncpu} coverage
@ -100,7 +103,7 @@ jobs:
uses: ./.github/actions/nimbus-build-system
with:
os: linux
nim_branch: version-1-2
nim_version: version-1-2
- name: Unit tests
run: make -j${ncpu} test

@ -1 +1 @@
Subproject commit 72d51e4c320fbdbdee4d6a28c2a621cda44b7143
Subproject commit 1cf6a1b18ca5aa0d24e7a2861dd85d79ad9cb0cd