[ci] use matrix.branch to specify NIM_COMMIT make var of nimbus-build-system (#65)

See: https://github.com/status-im/nimbus-build-system#nim_commit
This commit is contained in:
Michael Bradley 2022-04-01 11:22:10 -05:00 committed by GitHub
parent 1e5b41a447
commit e92fbd4ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -7,6 +7,7 @@ jobs:
fail-fast: false fail-fast: false
max-parallel: 20 max-parallel: 20
matrix: matrix:
branch: [v1.2.18, v1.4.8, v1.6.4]
target: target:
# Unit tests # Unit tests
- os: linux - os: linux
@ -176,7 +177,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: nim-dagger/NimBinaries path: nim-dagger/NimBinaries
key: 'nim-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}' key: 'nim-${{ matrix.branch }}-${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ steps.versions.outputs.nimbus_build_system }}'
- name: Install NodeJS - name: Install NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v2
@ -190,7 +191,7 @@ jobs:
if [[ "${{ runner.os }}" == "macOS" ]]; then if [[ "${{ runner.os }}" == "macOS" ]]; then
ulimit -n 1024 ulimit -n 1024
fi fi
make -j$ncpu ARCH_OVERRIDE=$PLATFORM CI_CACHE=NimBinaries QUICK_AND_DIRTY_COMPILER=1 update make -j$ncpu ARCH_OVERRIDE=$PLATFORM CI_CACHE=NimBinaries NIM_COMMIT="${{ matrix.branch }}" QUICK_AND_DIRTY_COMPILER=1 update
- name: Start Ethereum Node with Dagger contracts - name: Start Ethereum Node with Dagger contracts
shell: bash shell: bash
@ -203,7 +204,9 @@ jobs:
shell: bash shell: bash
working-directory: nim-dagger working-directory: nim-dagger
run: | run: |
make testAll ./env.sh nim --version
echo
make NIM_COMMIT="${{ matrix.branch }}" testAll
if [[ ${{ runner.os }} = macOS ]]; then if [[ ${{ runner.os }} = macOS ]]; then
echo echo
echo otool -L build/testDagger echo otool -L build/testDagger