add nim setup

This commit is contained in:
Jaremy Creechley 2023-07-11 17:15:42 -07:00
parent 6fadf32ee8
commit 59d45be045
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 11 additions and 6 deletions

View File

@ -141,13 +141,18 @@ jobs:
echo "ncpu=$ncpu" >> $GITHUB_ENV
echo "MAKE_CMD=${MAKE_CMD}" >> $GITHUB_ENV
- name: Restore Nim toolchain binaries from cache
id: nim-cache
uses: actions/cache@v3
- uses: jiro4989/setup-nim-action@v1
with:
path: NimBinaries
key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.branch }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
restore-keys: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.branch }}-cache-${{ env.cache_nonce }}
nim-version: 1.6.14
repo-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Restore Nim toolchain binaries from cache
# id: nim-cache
# uses: actions/cache@v3
# with:
# path: NimBinaries
# key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.branch }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
# restore-keys: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.branch }}-cache-${{ env.cache_nonce }}
# - name: Set NIM_COMMIT
# shell: ${{ matrix.shell }} {0}