Fix CI (#339)
* [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:
parent
df729be261
commit
82e7a2dde6
|
@ -9,7 +9,7 @@ inputs:
|
||||||
cpu:
|
cpu:
|
||||||
description: "CPU to build for"
|
description: "CPU to build for"
|
||||||
default: "amd64"
|
default: "amd64"
|
||||||
nim_branch:
|
nim_version:
|
||||||
description: "Nim version"
|
description: "Nim version"
|
||||||
default: "version-1-6"
|
default: "version-1-6"
|
||||||
shell:
|
shell:
|
||||||
|
@ -153,12 +153,12 @@ runs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: NimBinaries
|
path: NimBinaries
|
||||||
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
|
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_branch }}-cache-${{ env.cache_nonce }}
|
restore-keys: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_version }}-cache-${{ env.cache_nonce }}
|
||||||
|
|
||||||
- name: Set NIM_COMMIT
|
- name: Set NIM_COMMIT
|
||||||
shell: ${{ inputs.shell }} {0}
|
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
|
- name: Build Nim and Codex dependencies
|
||||||
shell: ${{ inputs.shell }} {0}
|
shell: ${{ inputs.shell }} {0}
|
||||||
|
|
|
@ -7,6 +7,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
env:
|
env:
|
||||||
cache_nonce: 0 # Allows for easily busting actions/cache caches
|
cache_nonce: 0 # Allows for easily busting actions/cache caches
|
||||||
|
nim_version: v1.6.10
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -41,6 +42,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
shell: ${{ matrix.shell }}
|
shell: ${{ matrix.shell }}
|
||||||
|
nim_version: ${{ env.nim_version }}
|
||||||
|
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: make -j${ncpu} test
|
run: make -j${ncpu} test
|
||||||
|
@ -73,6 +75,7 @@ jobs:
|
||||||
uses: ./.github/actions/nimbus-build-system
|
uses: ./.github/actions/nimbus-build-system
|
||||||
with:
|
with:
|
||||||
os: linux
|
os: linux
|
||||||
|
nim_version: ${{ env.nim_version }}
|
||||||
|
|
||||||
- name: Generate coverage data
|
- name: Generate coverage data
|
||||||
run: make -j${ncpu} coverage
|
run: make -j${ncpu} coverage
|
||||||
|
@ -100,7 +103,7 @@ jobs:
|
||||||
uses: ./.github/actions/nimbus-build-system
|
uses: ./.github/actions/nimbus-build-system
|
||||||
with:
|
with:
|
||||||
os: linux
|
os: linux
|
||||||
nim_branch: version-1-2
|
nim_version: version-1-2
|
||||||
|
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: make -j${ncpu} test
|
run: make -j${ncpu} test
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 72d51e4c320fbdbdee4d6a28c2a621cda44b7143
|
Subproject commit 1cf6a1b18ca5aa0d24e7a2861dd85d79ad9cb0cd
|
Loading…
Reference in New Issue