Fetch binaryen release instead of apt, which the runner sandbox cannot run
Browse files at this commit6d9eeb9ccde0d942a2ce8f1d97c34187031b44b6Parent: b39671eAll checks have passed
Show checks
ci/buildSucceededDetails
- ci
- fetch binaryen release instead of apt, which the runner sandbox cannot run
1 changed file +5 -4
- .forge/ci.toml +5 -4
.forge/ci.tomlmodified+5 -4
| @@ -8,17 +8,18 @@ tags = ["v*"] | |||
| 8 | 8 | ||
| 9 | [jobs.build] | 9 | [jobs.build] |
| 10 | image = "docker.io/library/rust:1" | 10 | image = "docker.io/library/rust:1" |
| 11 | -env = { CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0" } | 11 | +env = { CARGO_HOME = "/workspace/.cargo-home", SOURCE_DATE_EPOCH = "0", BINARYEN = "version_133" } |
| 12 | run = """ | 12 | run = """ |
| 13 | exec 2>&1 | 13 | exec 2>&1 |
| 14 | echo "::group::Tools" | 14 | echo "::group::Tools" |
| 15 | -apt-get update -qq && apt-get install -y -qq binaryen >/dev/null | 15 | +curl -fsSL https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN/binaryen-$BINARYEN-$(uname -m)-linux.tar.gz | tar xz -C /tmp |
| 16 | rustup target add wasm32-unknown-unknown | 16 | rustup target add wasm32-unknown-unknown |
| 17 | WBG=$(grep -A1 '^name = "wasm-bindgen"$' Cargo.lock | sed -n 's/^version = "\\(.*\\)"$/\\1/p') | 17 | WBG=$(grep -A1 '^name = "wasm-bindgen"$' Cargo.lock | sed -n 's/^version = "\\(.*\\)"$/\\1/p') |
| 18 | WBG_DIR=wasm-bindgen-$WBG-$(uname -m)-unknown-linux-musl | 18 | WBG_DIR=wasm-bindgen-$WBG-$(uname -m)-unknown-linux-musl |
| 19 | -curl -fsSL https://github.com/wasm-bindgen/wasm-bindgen/releases/download/$WBG/$WBG_DIR.tar.gz | tar xz -C /usr/local | 19 | +curl -fsSL https://github.com/wasm-bindgen/wasm-bindgen/releases/download/$WBG/$WBG_DIR.tar.gz | tar xz -C /tmp |
| 20 | -export PATH=/usr/local/$WBG_DIR:$PATH | 20 | +export PATH=/tmp/binaryen-$BINARYEN/bin:/tmp/$WBG_DIR:$PATH |
| 21 | wasm-bindgen --version | 21 | wasm-bindgen --version |
| 22 | +wasm-opt --version | ||
| 22 | echo "::endgroup::" | 23 | echo "::endgroup::" |
| 23 | echo "::group::Web build" | 24 | echo "::group::Web build" |
| 24 | bash tools/web.sh | 25 | bash tools/web.sh |