Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 7, 2024
1 parent c8a2d0b commit 08ca864
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
push:
branches:
- main
- build
paths-ignore:
- README.md

Expand All @@ -27,17 +28,51 @@ jobs:
with:
files: .

build-and-deploy:
name: Build and Deploy
wasm:
name: Build Wasm
runs-on: ubuntu-latest
permissions:
contents: write
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: actions/download-artifact@v4
with:
name: wasm
path: npm/oxc-wasm

- run: |
mkdir -p ../oxc/npm/oxc-wasm/
mv npm/oxc-wasm ../oxc/npm/oxc-wasm/
- uses: pnpm/action-setup@v2

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm run build

0 comments on commit 08ca864

Please sign in to comment.