Skip to content

Commit

Permalink
ci: update cargo-component installation conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr committed May 10, 2024
1 parent 0f4f73d commit eff8ce9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:
jobs:
build:
env:
CARGO_COMPONENT_VERSION: "0.11.0"
SCCACHE_CACHE_SIZE: "2G"
SCCACHE_VERSION: "0.8.0"
RUSTC_WRAPPER: "/usr/local/bin/sccache"
Expand Down Expand Up @@ -73,7 +74,10 @@ jobs:
targets: wasm32-unknown-unknown

- name: Install cargo-component
run: cargo install cargo-component --locked --version 0.11.0
run: |
if ! command -v cargo-component || ! cargo-component --version | grep -q $CARGO_COMPONENT_VERSION; then
cargo install cargo-component --locked --version $CARGO_COMPONENT_VERSION --force
fi
- name: Build extensions
run: cargo component build --release --workspace --target wasm32-unknown-unknown
Expand Down

0 comments on commit eff8ce9

Please sign in to comment.