Skip to content

Commit 0ea1234

Browse files
committed
Fix udeps for macos
1 parent 537ee96 commit 0ea1234

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

.github/workflows/rust-unused-dependencies.yml

+34-6
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,45 @@ jobs:
8484
- name: Check for unused dependencies
8585
run: cargo udeps --target aarch64-linux-android --package mullvad-jni
8686

87-
cargo-udeps:
88-
strategy:
89-
matrix:
90-
os: [macos-latest, windows-latest]
91-
runs-on: ${{ matrix.os }}
87+
cargo-udeps-windows:
88+
runs-on: windows-latest
9289

9390
steps:
9491
- name: Checkout repository
9592
uses: actions/checkout@v3
9693

97-
# TODO: submod wireguard-go on just macos
94+
- name: Install Protoc
95+
uses: arduino/setup-protoc@v3
96+
with:
97+
repo-token: ${{ secrets.GITHUB_TOKEN }}
98+
99+
- name: Install Rust
100+
uses: actions-rs/toolchain@v1.0.6
101+
with:
102+
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
103+
default: true
104+
profile: minimal
105+
106+
- uses: taiki-e/install-action@v2
107+
with:
108+
tool: cargo-udeps
109+
110+
- name: Check for unused dependencies
111+
shell: bash
112+
run: cargo udeps --workspace
113+
114+
cargo-udeps-macos:
115+
runs-on: macos-latest
116+
117+
steps:
118+
- name: Checkout repository
119+
uses: actions/checkout@v3
120+
121+
- name: Checkout submodules
122+
run: |
123+
git config --global --add safe.directory '*'
124+
git submodule update --init --depth=1 dist-assets/binaries wireguard-go-rs/libwg/wireguard-go
125+
98126
- name: Install Protoc
99127
uses: arduino/setup-protoc@v3
100128
with:

0 commit comments

Comments
 (0)