Repository navigation
68 lines (58 loc) · 1.7 KB
/
Copy pathwasm.yml
File metadata and controls
68 lines (58 loc) · 1.7 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
name: wasm numerical suite
on:
push:
paths:
- 'test/wasm/**'
- 'kernel/wasm/**'
- 'kernel/simd/intrin_wasm.h'
- 'kernel/simd/intrin.h'
- 'Makefile.wasm'
- '.github/workflows/wasm.yml'
pull_request:
paths:
- 'test/wasm/**'
- 'kernel/wasm/**'
- 'kernel/simd/intrin_wasm.h'
- 'kernel/simd/intrin.h'
- 'Makefile.wasm'
- '.github/workflows/wasm.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
numerical:
if: github.repository == 'OpenMathLib/OpenBLAS' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
# Explicit IEEE vs relaxed-SIMD OpenBLAS builds (and matching suite tolerances).
wasm_relaxed_simd: ['0', '1']
name: numerical (WASM_RELAXED_SIMD=${{ matrix.wasm_relaxed_simd }})
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup Emscripten
uses: emscripten-core/setup-emsdk@v16
with:
version: 4.0.10
actions-cache-folder: emsdk-cache
- name: Verify toolchain
run: |
emcc -v
node -v
which emmake emar emranlib
- name: Run WASM numerical CBLAS suite
env:
WASM_RELAXED_SIMD: ${{ matrix.wasm_relaxed_simd }}
run: |
echo "Running suite with WASM_RELAXED_SIMD=${WASM_RELAXED_SIMD}"
JOBS="$(nproc)" ./test/wasm/run.sh