@@ -14,7 +14,7 @@ concurrency:
14
14
env :
15
15
PACKAGE : " tuic-server"
16
16
PACKAGE2 : " tuic-client"
17
- RUST_TOOLCHAIN : " nightly-2024-12-29 "
17
+ RUST_TOOLCHAIN : " nightly-2025-02-12 "
18
18
19
19
jobs :
20
20
compile :
32
32
# target: x86_64-unknown-linux-gnu
33
33
# release-name: x86_64-linux
34
34
# toolchain: stable
35
- # cross: true
35
+ # tool: cross
36
36
# postfix: ""
37
37
# extra-args: ""
38
38
# components: ""
@@ -122,6 +122,8 @@ jobs:
122
122
target : x86_64-unknown-freebsd
123
123
release-name : x86_64-freebsd
124
124
tool : cross
125
+ skip-test : true
126
+ extra-args : " --no-default-features --features ring"
125
127
# RISC-V
126
128
- os : ubuntu-latest
127
129
target : riscv64gc-unknown-linux-gnu
@@ -133,6 +135,7 @@ jobs:
133
135
target : loongarch64-unknown-linux-gnu
134
136
release-name : loongarch64-linux
135
137
tool : cross
138
+ extra-args : " --no-default-features --features ring"
136
139
137
140
# Linux mips: tier-3, pity
138
141
# Windows gnu: tokio dont work
@@ -158,15 +161,23 @@ jobs:
158
161
target : ${{ matrix.target }}
159
162
components : ${{ matrix.components || 'rustfmt, clippy' }}
160
163
164
+ - name : Install rust targets & cross
165
+ if : matrix.tool == 'cross'
166
+ run : |
167
+ rustup target add ${TARGET}
168
+ rm -f ~/.cargo/bin/cross*
169
+ cargo install cross --git https://github.com/cross-rs/cross
170
+ env :
171
+ TARGET : ${{ matrix.target }}
172
+
161
173
- name : Cargo fmt
162
- uses : clechasseur/rs-cargo@v2
174
+ uses : clechasseur/rs-cargo@v3
163
175
with :
164
- tool : ${{ matrix.tool }}
165
176
command : fmt
166
177
args : --all -- --check
167
178
168
179
- name : Cargo clippy
169
- uses : clechasseur/rs-cargo@v2
180
+ uses : clechasseur/rs-cargo@v3
170
181
with :
171
182
tool : ${{ matrix.tool }}
172
183
command : clippy
@@ -175,7 +186,7 @@ jobs:
175
186
RUSTFLAGS : ${{ matrix.rustflags }}
176
187
177
188
- name : Cargo test
178
- uses : clechasseur/rs-cargo@v2
189
+ uses : clechasseur/rs-cargo@v3
179
190
if : ${{ !matrix.skip-test }}
180
191
with :
181
192
tool : ${{ matrix.tool }}
@@ -186,7 +197,7 @@ jobs:
186
197
RUSTFLAGS : ${{ matrix.rustflags }}
187
198
188
199
- name : Cargo build
189
- uses : clechasseur/rs-cargo@v2
200
+ uses : clechasseur/rs-cargo@v3
190
201
with :
191
202
tool : ${{ matrix.tool }}
192
203
command : build
0 commit comments