ci(build_wasm): `cargo binstall trunk` instead of installing from source

This is intended to make the `build_wasm` CI check complete more quickly.
This commit is contained in:
Mikolaj Wielgus 2024-10-07 00:42:44 +02:00
parent a3f744cce8
commit 607fa056a4
1 changed files with 3 additions and 1 deletions

View File

@ -12,9 +12,11 @@ steps:
RUST_BACKTRACE: 1
CARG_TERM_COLOR: always
commands:
- apt-get -y install curl
- curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- cargo binstall --no-confirm trunk
- rustup default "$CHANNEL"
- rustup target add wasm32-unknown-unknown
- cargo install --locked trunk
- trunk build
when:
event: [pull_request, push, tag]