From 03b935e916304c51e5724f698e0853dc2e7f2729 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Tue, 25 Nov 2025 17:33:11 +0000 Subject: [PATCH 1/2] ci: restore WASM build in release --- .github/workflows/release.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a011452acf77..ec933bc63cf9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -237,20 +237,12 @@ 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 @@ -258,15 +250,21 @@ jobs: - 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 }} 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: From d9c69c939ad3d8c42f690787acc41e53b1fca836 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 26 Nov 2025 08:14:48 +0000 Subject: [PATCH 2/2] feedback --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec933bc63cf9..1e0f07695a84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -260,7 +260,7 @@ jobs: - name: Upload WASM artifact uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: - name: wasm-${{ matrix.target }} + name: wasm-* path: | ./packages/@biomejs/wasm-bundler ./packages/@biomejs/wasm-nodejs