diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index e058fb2072b5..55c34a35fa63 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -29,6 +29,14 @@ jobs: restore-keys: | cargo-release-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} + - name: Patch + shell: bash + run: | + echo '[patch.crates-io]' >> bindings/Cargo.toml + ./scripts/cargo/patch-section.sh + ./scripts/cargo/patch-section.sh >> bindings/Cargo.toml + cd bindings && cargo update -p swc_core + - name: Install wasm-pack run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh