diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9453c901..7924f3dc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,8 @@ env: NPROC: 2 MAKEFLAGS: "-j${NPROC}" NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none" + NIM_VERSION: '2.2.4' + NIMBLE_VERSION: '0.22.3' jobs: changes: # changes detection @@ -63,6 +65,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim ${{ env.NIM_VERSION }} + uses: jiro4989/setup-nim-action@v2 + with: + nim-version: ${{ env.NIM_VERSION }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Nimble ${{ env.NIMBLE_VERSION }} + run: nimble install "nimble@${{ env.NIMBLE_VERSION }}" -y + - name: Cache nimble deps id: cache-nimbledeps uses: actions/cache@v3 @@ -103,6 +114,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim ${{ env.NIM_VERSION }} + uses: jiro4989/setup-nim-action@v2 + with: + nim-version: ${{ env.NIM_VERSION }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Nimble ${{ env.NIMBLE_VERSION }} + run: nimble install "nimble@${{ env.NIMBLE_VERSION }}" -y + - name: Cache nimble deps id: cache-nimbledeps uses: actions/cache@v3 @@ -169,6 +189,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Nim ${{ env.NIM_VERSION }} + uses: jiro4989/setup-nim-action@v2 + with: + nim-version: ${{ env.NIM_VERSION }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Nimble ${{ env.NIMBLE_VERSION }} + run: nimble install "nimble@${{ env.NIMBLE_VERSION }}" -y + - name: Cache nimble deps id: cache-nimbledeps uses: actions/cache@v3