-
Notifications
You must be signed in to change notification settings - Fork 6
91 lines (75 loc) · 2.41 KB
/
Copy pathuvm-nightly.yml
File metadata and controls
91 lines (75 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: uvm-nightly
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
concurrency:
group: uvm-nightly-${{ github.ref }}
cancel-in-progress: true
jobs:
uvm-matrix:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Cache Playwright browser
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-chromium-1.58.2
- name: Install dependencies
run: npm ci
- name: Prepare Surfer assets
run: scripts/setup-surfer.sh
- name: Prepare Pyodide assets
run: scripts/setup-pyodide.sh
- name: Download MOX wasm artifacts
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p static/mox
unpack_uvm_bundle_if_present() {
if [ -f static/mox/uvm-core.tar.gz ]; then
rm -rf static/mox/uvm-core
tar -xzf static/mox/uvm-core.tar.gz -C static/mox
fi
}
have_all_artifacts() {
[ -f static/mox/mox-verilog.js ] && \
[ -f static/mox/mox-verilog.wasm ] && \
[ -f static/mox/mox-sim.js ] && \
[ -f static/mox/mox-sim.wasm ] && \
[ -f static/mox/uvm-core/uvm-manifest.json ]
}
if ! have_all_artifacts; then
gh release download mox-wasm \
--repo "$GITHUB_REPOSITORY" \
-D static/mox \
--clobber
unpack_uvm_bundle_if_present
fi
if ! have_all_artifacts; then
echo "::error::MOX wasm artifacts are missing after release download."
exit 1
fi
- name: Install Playwright browser
run: npx playwright install --with-deps chromium
- name: Run full UVM browser-worker matrix
run: |
LOG_DIR="$RUNNER_TEMP/uvm-matrix-logs"
mkdir -p "$LOG_DIR"
./scripts/run-uvm-browser-worker-matrix.sh \
--full \
--retries 3 \
--log-dir "$LOG_DIR"
- name: Upload UVM matrix logs
if: always()
uses: actions/upload-artifact@v4
with:
name: uvm-nightly-logs-${{ github.run_id }}
path: ${{ runner.temp }}/uvm-matrix-logs
if-no-files-found: ignore