Merge pull request #1 from compiler-explorer/fix-build-issues #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-20-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-20- | |
- name: Install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Build Core | |
run: npm run core:build | |
- name: Build Library | |
run: npm run lib:build:wasm | |
- name: Build TypeScript Library | |
run: npm run lib:build:ts | |
- name: Build Iframe Demo | |
run: npm run iframe:build | |
- name: Build Debugger | |
run: npm run debugger:build | |
- name: Build Benchmark | |
run: npm run benchmark:build | |
- name: Run Core Tests | |
run: npm run test:core:nobuild | |
continue-on-error: true | |
- name: Run Integration Tests | |
run: npm run test:integration:nobuild | |
continue-on-error: true | |
- name: Run Accuracy Tests | |
run: npm run test:accuracy:nobuild | |
continue-on-error: true |