mirror of
https://github.com/codex-storage/codex-marketplace-ui.git
synced 2025-02-23 05:08:33 +00:00
CI
This commit is contained in:
parent
fc1cbd7abe
commit
028069f38d
11
.github/workflows/playwright.yml
vendored
11
.github/workflows/playwright.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user