fix rust_wasm_build

This commit is contained in:
007gzs
2025-02-27 10:30:34 +08:00
parent 45fdd95a9c
commit 8be591d052
3 changed files with 7 additions and 1 deletions

View File

@@ -133,6 +133,10 @@ jobs:
command="
set -e
cd /workspace/plugins/wasm-rust/extensions/${PLUGIN_NAME}
if [ -f ./.prebuild ]; then
echo 'Found .prebuild file, sourcing it...'
. ./.prebuild
fi
cargo build --target wasm32-wasip1 --release
cp target/wasm32-wasip1/release/*.wasm plugin.wasm
tar czvf plugin.tar.gz plugin.wasm

View File

@@ -1 +0,0 @@
apt update && apt-get install gcc gcc-multilib llvm clang -y && apt clean

View File

@@ -0,0 +1,3 @@
apt-get update
apt-get install gcc gcc-multilib llvm clang -y
apt-get clean