Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,36 +237,34 @@ jobs:
path: ./dist/biome-*
if-no-files-found: error


build-wasm:
name: Build WASM
runs-on: depot-ubuntu-24.04-arm-16
needs: version
if: needs.version.outputs.cli-version
strategy:
matrix:
include:
- target: wasm-bundler
wasm-pack-target: bundler
- target: wasm-nodejs
wasm-pack-target: nodejs
- target: wasm-web
wasm-pack-target: web
steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Build WASM module ${{ matrix.target }}
run: wasm-pack build --out-dir ../../packages/@biomejs/${{ matrix.target }} --target ${{ matrix.wasm-pack-target }} --release --scope biomejs crates/biome_wasm
- name: Build WASM module for bundlers
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-bundler --target bundler --release --scope biomejs crates/biome_wasm
- name: Build WASM module for node.js
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-nodejs --target nodejs --release --scope biomejs crates/biome_wasm
- name: Build WASM module for the web
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm

- name: Upload WASM artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: wasm-${{ matrix.target }}
name: wasm-*
path: |
./packages/@biomejs/${{ matrix.target }}
./packages/@biomejs/wasm-bundler
./packages/@biomejs/wasm-nodejs
./packages/@biomejs/wasm-web
if-no-files-found: error

build-js-api:
Expand Down