Skip to content

Commit 1c3ac6f

Browse files
committed
fix: revert to manual wasmtime installation with proper URLs
The @wasmtime repository isn't registered in MODULE.bazel, so we can't query it from Bazel. Reverting to direct GitHub releases download. Changes: - Use wasmtime v27.0.0 from GitHub releases - Platform-specific downloads (linux x64, macos arm64) - Add TODO to register wasmtime toolchain for future reuse This fixes the performance test failures caused by missing @wasmtime repo.
1 parent a41c3a7 commit 1c3ac6f

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/performance.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,20 @@ jobs:
7070
brew install hyperfine
7171
fi
7272
73-
# Use wasmtime from rules_wasm_component toolchain (already downloaded by Bazel)
74-
# Extract the binary path from Bazel and copy to PATH
75-
WASMTIME_PATH=$(bazel cquery --output=files @wasmtime//:wasmtime 2>/dev/null | head -1)
76-
77-
if [ -n "$WASMTIME_PATH" ] && [ -f "$WASMTIME_PATH" ]; then
78-
echo "Using Bazel-provided wasmtime from: $WASMTIME_PATH"
79-
sudo cp "$WASMTIME_PATH" /usr/local/bin/wasmtime
80-
sudo chmod +x /usr/local/bin/wasmtime
81-
else
82-
echo "Error: Could not find wasmtime in Bazel cache"
83-
exit 1
73+
# Install wasmtime - use manual installation since @wasmtime toolchain not registered
74+
# TODO: Register wasmtime toolchain in MODULE.bazel to reuse Bazel's download
75+
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
76+
WASMTIME_VERSION="v27.0.0"
77+
curl -L "https://github.com/bytecodealliance/wasmtime/releases/download/${WASMTIME_VERSION}/wasmtime-${WASMTIME_VERSION}-x86_64-linux.tar.xz" -o wasmtime.tar.xz
78+
tar -xf wasmtime.tar.xz
79+
sudo mv "wasmtime-${WASMTIME_VERSION}-x86_64-linux/wasmtime" /usr/local/bin/
80+
rm -rf wasmtime.tar.xz "wasmtime-${WASMTIME_VERSION}-x86_64-linux"
81+
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
82+
WASMTIME_VERSION="v27.0.0"
83+
curl -L "https://github.com/bytecodealliance/wasmtime/releases/download/${WASMTIME_VERSION}/wasmtime-${WASMTIME_VERSION}-aarch64-macos.tar.xz" -o wasmtime.tar.xz
84+
tar -xf wasmtime.tar.xz
85+
sudo mv "wasmtime-${WASMTIME_VERSION}-aarch64-macos/wasmtime" /usr/local/bin/
86+
rm -rf wasmtime.tar.xz "wasmtime-${WASMTIME_VERSION}-aarch64-macos"
8487
fi
8588
8689
# Verify it works

0 commit comments

Comments
 (0)