This commit is contained in:
Arnaud 2024-10-11 16:19:51 +02:00
parent fc1cbd7abe
commit 028069f38d
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -22,6 +22,11 @@ jobs:
- name: Install dependencies
run: sudo apt update && sudo apt install libgomp1
- name: Setup env variables
run: |
echo "platform=${RUNNER_OS,,}" >> $GITHUB_ENV
echo "architecture=$([[ $RUNNER_ARCH == 'X64' ]] && echo amd64 || echo ${RUNNER_ARCH,,})" >> $GITHUB_ENV
- name: Restore cached circuits
id: circuits-cache-restore
uses: actions/cache/restore@v4
@ -33,8 +38,6 @@ jobs:
- name: Download circuits
if: steps.circuits-cache-restore.outputs.cache-hit != 'true'
run: |
platform=${RUNNER_OS,,}
architecture=$([[ $RUNNER_ARCH == 'X64' ]] && echo amd64 || echo ${RUNNER_ARCH,,})
echo $platform
echo "https://github.com/codex-storage/nim-codex/releases/download/${circuit_version}/cirdl-${circuit_version}-${platform}-${architecture}.tar.gz"
mkdir -p datadir/circuits
@ -56,7 +59,7 @@ jobs:
id: codex-cache-restore
uses: actions/cache/restore@v4
with:
path: codex-${{ env.codex_version }}-${{ env.RUNNER_OS }}-${{ env.RUNNER_ARCH }}
path: ./codex-${{ env.codex_version }}-${{ env.platform }}-${{ env.architecture }}
key: ${{ env.codex_version }}-codex
- name: Download codex
@ -118,7 +121,7 @@ jobs:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-node-${{ hashFiles('**/playwright.config.ts') }}
- if: steps.playwright-browsers.outputs.cache-hit != 'true'
- if: steps.playwright-browsers-cache.outputs.cache-hit != 'true'
name: Install Playwright Browsers
run: npx playwright install --with-deps