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 9ee5c70
Showing 1 changed file with 42 additions and 5 deletions.
47 changes: 42 additions & 5 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,53 @@ 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
- uses: pnpm/action-setup@v2
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:
merge-multiple: true
name: wasm
path: npm/oxc-wasm

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

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

- run: pnpm install --frozen-lockfile

- run: pnpm run build

0 comments on commit 9ee5c70

Please sign in to comment.