Skip to content

Commit

Permalink
Work around failing CI workflow on cargo install (#189)
Browse files Browse the repository at this point in the history
## Description

This PR adds a workaround for the invocation of `cargo install
cargo-hack` in case it it fails when the CI runner image does not
provide the necessary Rust version.

See
https://github.com/HMIProject/open62541/actions/runs/12414513710/job/34658803434?pr=188.
  • Loading branch information
sgoll authored Dec 19, 2024
1 parent 80e849f commit 3b02aa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/latest-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ jobs:
target: ${{ matrix.target }}

- name: Install Cargo helpers
# Fall back to installing with locked dependencies when installed rustc
# is too old.
run: >-
cargo install cargo-hack
cargo install cargo-hack || cargo install --locked cargo-hack
# Check out the repository before the remaining steps that depend on it.
# All preceding steps are independent of the repository contents.
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ jobs:
target: ${{ matrix.target }}

- name: Install Cargo helpers
# Fall back to installing with locked dependencies when installed rustc
# is too old.
run: >-
cargo install cargo-hack
cargo install cargo-hack || cargo install --locked cargo-hack
# Check out the repository before the remaining steps that depend on it.
# All preceding steps are independent of the repository contents.
Expand Down

0 comments on commit 3b02aa6

Please sign in to comment.