Skip to content

Commit d5938c3

Browse files
committed
fix: Apply the same fix to broken cargo-udeps as rp-hal
1 parent 3df1f1b commit d5938c3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Test check
33
jobs:
44
builds:
55
name: Build checks
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-24.04
77
strategy:
88
matrix:
99
mode: ["", "--release"]
@@ -40,9 +40,12 @@ jobs:
4040
target: thumbv6m-none-eabi
4141
override: true
4242
profile: minimal
43-
- name: Check unused deps
44-
uses: aig787/cargo-udeps-action@v1
45-
with:
46-
version: latest
47-
args: ${{ matrix.mode }}
43+
- name: Install cargo-hack
44+
run: |
45+
curl -sSL https://github.com/taiki-e/cargo-hack/releases/download/v0.6.17/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - -C ~/.cargo/bin
46+
- name: Install cargo-udeps
47+
run: |
48+
curl -sSL https://github.com/est31/cargo-udeps/releases/download/v0.1.55/cargo-udeps-v0.1.55-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - --strip-components=2 -C ~/.cargo/bin ./cargo-udeps-v0.1.55-x86_64-unknown-linux-gnu/cargo-udeps
49+
- name: Run cargo-udeps
50+
run: cargo hack udeps --optional-deps --each-feature
4851

0 commit comments

Comments
 (0)