mirror of
https://github.com/Z3Prover/z3
synced 2026-07-22 15:05:51 +00:00
`actions/setup-node` with `node-version: "lts/*"` requires fetching a version manifest from GitHub's servers to resolve the alias. This manifest request was returning a GitHub 500 error, causing the `Check` job to fail at setup. ## Changes - **`wasm.yml`, `wasm-release.yml`**: Replace `node-version: "lts/*"` with `node-version: "22"` (current Active LTS), eliminating the remote manifest lookup entirely. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
54 lines
1 KiB
YAML
54 lines
1 KiB
YAML
name: WebAssembly Build
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: src/api/js
|
|
|
|
env:
|
|
EM_VERSION: 3.1.73
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
check:
|
|
name: Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7.0.0
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: "22"
|
|
|
|
- name: Setup emscripten
|
|
uses: mymindstorm/setup-emsdk@v16
|
|
with:
|
|
no-install: true
|
|
version: ${{env.EM_VERSION}}
|
|
actions-cache-folder: "emsdk-cache"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build TypeScript
|
|
run: npm run build:ts
|
|
|
|
- name: Build wasm
|
|
run: |
|
|
emsdk install ${EM_VERSION}
|
|
emsdk activate ${EM_VERSION}
|
|
source $(dirname $(which emsdk))/emsdk_env.sh
|
|
which node
|
|
which clang++
|
|
npm run build:wasm
|
|
|
|
- name: Test
|
|
run: npm test
|