mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-30 19:22:28 +00:00 
			
		
		
		
	Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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@v5
 | |
| 
 | |
|       - name: Setup node
 | |
|         uses: actions/setup-node@v5
 | |
|         with:
 | |
|           node-version: "lts/*"
 | |
| 
 | |
|       - name: Setup emscripten
 | |
|         uses: mymindstorm/setup-emsdk@v14
 | |
|         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
 |