forge
Explore
Log in

Don't you dare go Hollow

Fetch binaryen release instead of apt, which the runner sandbox cannot run

Browse files at this commit

6d9eeb9ccde0d942a2ce8f1d97c34187031b44b6Ahmet Kaan GümüşParent: b39671e
All checks have passed
Show checks
  • ci
    • fetch binaryen release instead of apt, which the runner sandbox cannot run
Show full message
👷 ci: fetch binaryen release instead of apt, which the runner sandbox cannot run
.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>&113 exec 2>&1
14 echo "::group::Tools"14 echo "::group::Tools"
15-apt-get update -qq && apt-get install -y -qq binaryen >/dev/null15+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-unknown16 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-musl18 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/local19+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:$PATH20+export PATH=/tmp/binaryen-$BINARYEN/bin:/tmp/$WBG_DIR:$PATH
21 wasm-bindgen --version21 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.sh25 bash tools/web.sh