Skip to content

Commit

Permalink
ci: Stop using deprecated actions-rs/install
Browse files Browse the repository at this point in the history
Instead, directly call `cargo install` to install the rust tools.
Additionally, in light of the recent proc-macro2 regression in svd2rust,
pass the `--locked` flag, to ensure the correct and deterministic
versions get built.
  • Loading branch information
Rahix committed Oct 12, 2024
1 parent 5410f43 commit 2efc037
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,16 @@ jobs:
id: cache-cargo
with:
path: ~/cargo-bin
key: rust-tools-005
key: rust-tools-006
- name: Install svd2rust
if: steps.cache-cargo.outputs.cache-hit != 'true'
uses: actions-rs/[email protected]
with:
crate: svd2rust
version: 0.28.0
run: cargo install svd2rust --version 0.28.0 --locked
- name: Install cargo-form
if: steps.cache-cargo.outputs.cache-hit != 'true'
uses: actions-rs/[email protected]
with:
crate: form
version: 0.8.0
run: cargo install form --version 0.8.0 --locked
- name: Install atdf2svd
if: steps.cache-cargo.outputs.cache-hit != 'true'
uses: actions-rs/[email protected]
with:
crate: atdf2svd
version: 0.4.0
run: cargo install atdf2svd --version 0.4.0 --locked
- name: Copy tools to cache directory
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit 2efc037

Please sign in to comment.