Skip to content

test build

test build #17

Workflow file for this run

name: CI
on:
pull_request:
types:
- opened
- synchronize
paths-ignore:
- README.md
push:
branches:
- main
- build
paths-ignore:
- README.md
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
check-typos:
name: Check typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
with:
files: .
wasm:
name: Build Wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: oxc-project/oxc
ref: main
- uses: Boshen/setup-rust@main
with:
save-cache: ${{ github.ref_name == 'main' }}
tools: wasm-pack,just
- run: just build-wasm
- uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: wasm
path: npm/oxc-wasm
build:
needs: wasm
name: Build Playground
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- uses: actions/download-artifact@v4
with:
merge-multiple: true
name: wasm
path: ../oxc/npm/oxc-wasm
- run: ls ../oxc/npm/oxc-wasm
- run: pnpm run build