10
10
workflow_dispatch :
11
11
env :
12
12
# Pinning nightly just to avoid random breakage. It's fine to bump this at any time
13
- RUST_NIGHTLY_TOOLCHAIN : nightly-2024-02-06
13
+ RUST_NIGHTLY_TOOLCHAIN : nightly-2024-05-07
14
14
jobs :
15
15
prepare-containers :
16
16
runs-on : ubuntu-latest
@@ -41,17 +41,17 @@ jobs:
41
41
- name : Checkout repository
42
42
uses : actions/checkout@v3
43
43
44
- - name : Checkout binaries submodule
44
+ - name : Checkout submodules
45
45
run : |
46
46
git config --global --add safe.directory '*'
47
- git submodule update --init --depth=1 dist-assets/binaries
47
+ git submodule update --init --depth=1 dist-assets/binaries wireguard-go-rs/libwg/wireguard-go
48
48
49
49
- name : Install nightly Rust toolchain
50
50
run : rustup default $RUST_NIGHTLY_TOOLCHAIN
51
51
52
52
- uses : taiki-e/install-action@v2
53
53
with :
54
- tool : cargo-udeps
54
+ tool : cargo-udeps@0.1.48
55
55
56
56
- name : Check for unused dependencies
57
57
shell : bash
@@ -72,27 +72,36 @@ jobs:
72
72
- name : Checkout repository
73
73
uses : actions/checkout@v3
74
74
75
+ - name : Checkout wireguard-go submodule
76
+ run : |
77
+ git config --global --add safe.directory '*'
78
+ git submodule update --init --depth=1 wireguard-go-rs/libwg/wireguard-go
79
+
75
80
- name : Install nightly Rust toolchain
76
81
run : |
77
82
rustup default $RUST_NIGHTLY_TOOLCHAIN
78
83
rustup target add aarch64-linux-android
79
84
80
85
- uses : taiki-e/install-action@v2
81
86
with :
82
- tool : cargo-udeps
87
+ tool : cargo-udeps@0.1.48
83
88
84
89
- name : Check for unused dependencies
85
90
run : cargo udeps --target aarch64-linux-android --package mullvad-jni
86
91
92
+ cargo-udeps-windows :
93
+ runs-on : windows-latest
94
+
87
95
cargo-udeps :
88
96
strategy :
89
97
matrix :
90
- os : [macos -latest, windows -latest]
98
+ os : [windows -latest, macos -latest]
91
99
runs-on : ${{ matrix.os }}
92
-
93
100
steps :
94
101
- name : Checkout repository
95
- uses : actions/checkout@v3
102
+ uses : actions/checkout@v4
103
+ with :
104
+ submodules : true
96
105
97
106
- name : Install Protoc
98
107
uses : arduino/setup-protoc@v3
@@ -108,7 +117,13 @@ jobs:
108
117
109
118
- uses : taiki-e/install-action@v2
110
119
with :
111
- tool : cargo-udeps
120
+ tool : cargo-udeps@0.1.48
121
+
122
+ - name : Install Go
123
+ if : matrix.os == 'macos-latest'
124
+ uses : actions/setup-go@v3
125
+ with :
126
+ go-version : 1.21.3
112
127
113
128
- name : Check for unused dependencies
114
129
shell : bash
0 commit comments