Add Rust toolchain to build-frontend stage

This commit is contained in:
continuist 2025-10-25 19:19:06 -04:00
parent 285543500c
commit 167918c0f0

View file

@ -208,12 +208,30 @@ jobs:
echo "=== Inode info ==="
df -i /home/ci-service /tmp /var/tmp 2>/dev/null || df -i /tmp /var/tmp
- name: Install wasm-pack
- name: Install Rust toolchain and wasm-pack
run: |
which wasm-pack || cargo install wasm-pack
# Install Rust using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
# Install wasm32 target
rustup target add wasm32-unknown-unknown
# Configure cargo registry for sharenet-sh-forgejo
cat > $HOME/.cargo/config.toml << EOF
[registries.sharenet-sh-forgejo]
index = "sparse+https://${{ secrets.REGISTRY_HOST }}/api/packages/${{ github.repository }}/cargo/index/"
[net]
git-fetch-with-cli = true
EOF
# Install wasm-pack
cargo install wasm-pack
- name: Build WASM module
run: |
source $HOME/.cargo/env
cd frontend/wasm
wasm-pack build --target web