From e92fbd4ad1c49d53da3d4e29d98e8e29c19fad1f Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Fri, 1 Apr 2022 11:22:10 -0500 Subject: [PATCH] [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 --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e9c16d2..3598cbbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ jobs: fail-fast: false max-parallel: 20 matrix: + branch: [v1.2.18, v1.4.8, v1.6.4] target: # Unit tests - os: linux @@ -176,7 +177,7 @@ jobs: uses: actions/cache@v2 with: 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 uses: actions/setup-node@v2 @@ -190,7 +191,7 @@ jobs: if [[ "${{ runner.os }}" == "macOS" ]]; then ulimit -n 1024 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 shell: bash @@ -203,7 +204,9 @@ jobs: shell: bash working-directory: nim-dagger run: | - make testAll + ./env.sh nim --version + echo + make NIM_COMMIT="${{ matrix.branch }}" testAll if [[ ${{ runner.os }} = macOS ]]; then echo echo otool -L build/testDagger