17
17
- ' LICENSE-*'
18
18
- ' **.md'
19
19
- ' **.txt'
20
+ workflow_dispatch :
21
+ schedule : [cron: "0 1 */7 * *"]
20
22
21
23
env :
22
24
CARGO_TERM_COLOR : always
@@ -78,14 +80,18 @@ jobs:
78
80
- x86_64-pc-windows-gnu
79
81
- i686-unknown-linux-gnu
80
82
- powerpc64-unknown-linux-gnu
83
+ # - mips64-unknown-linux-gnuabi64
81
84
- riscv64gc-unknown-linux-gnu
82
85
- wasm32-unknown-unknown
83
86
- wasm32-unknown-emscripten
87
+ - wasm32-wasip1
88
+ - wasm32-wasip1-threads
89
+ - wasm32-wasip2
84
90
runs-on : ubuntu-latest
85
91
steps :
86
- - uses : actions/checkout@v3
92
+ - uses : actions/checkout@v4
87
93
- name : Cache cargo build and registry
88
- uses : actions/cache@v3
94
+ uses : actions/cache@v4
89
95
with :
90
96
path : |
91
97
~/.cargo/registry
@@ -96,16 +102,10 @@ jobs:
96
102
${{ runner.os }}-cross-
97
103
- name : Install Rust
98
104
run : rustup update stable && rustup default stable
99
- - name : cross build --target ${{ matrix.target }}
100
- run : |
101
- cargo install cross
102
- cross build --target ${{ matrix.target }}
103
- if : matrix.target != 'wasm32-wasi' && matrix.target != 'wasm32-unknown-unknown'
104
105
- name : cargo build --target ${{ matrix.target }}
105
106
run : |
106
107
rustup target add ${{ matrix.target }}
107
- cargo build --target ${{ matrix.target }}
108
- if : matrix.target == 'wasm32-wasi' || matrix.target == 'wasm32-unknown-unknown'
108
+ cargo build --target ${{ matrix.target }} --no-default-features --features std
109
109
110
110
build :
111
111
name : build
@@ -117,26 +117,28 @@ jobs:
117
117
- windows-latest
118
118
runs-on : ${{ matrix.os }}
119
119
steps :
120
- - uses : actions/checkout@v3
120
+ - uses : actions/checkout@v4
121
121
- name : Cache cargo build and registry
122
- uses : actions/cache@v3
122
+ uses : actions/cache@v4
123
123
with :
124
124
path : |
125
125
~/.cargo/registry
126
126
~/.cargo/git
127
127
target
128
- key : ${{ runner.os }}-build -${{ hashFiles('**/Cargo.lock') }}
128
+ key : ${{ runner.os }}-test -${{ hashFiles('**/Cargo.lock') }}
129
129
restore-keys : |
130
- ${{ runner.os }}-build -
130
+ ${{ runner.os }}-test -
131
131
- name : Install Rust
132
132
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
133
- run : rustup update stable --no-self-update && rustup default stable
133
+ run : rustup update stable --no-self-update && rustup default stable
134
+ - name : Install cargo-hack
135
+ run : cargo install cargo-hack
134
136
- name : Cache ~/.cargo
135
- uses : actions/cache@v3
137
+ uses : actions/cache@v4
136
138
with :
137
139
path : ~/.cargo
138
140
key : ${{ runner.os }}-coverage-dotcargo
139
- - name : Run build
141
+ - name : Run test
140
142
run : cargo build
141
143
142
144
test :
@@ -151,7 +153,7 @@ jobs:
151
153
steps :
152
154
- uses : actions/checkout@v3
153
155
- name : Cache cargo build and registry
154
- uses : actions/cache@v3
156
+ uses : actions/cache@v4
155
157
with :
156
158
path : |
157
159
~/.cargo/registry
@@ -164,7 +166,7 @@ jobs:
164
166
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
165
167
run : rustup update stable --no-self-update && rustup default stable
166
168
- name : Cache ~/.cargo
167
- uses : actions/cache@v3
169
+ uses : actions/cache@v4
168
170
with :
169
171
path : ~/.cargo
170
172
key : ${{ runner.os }}-coverage-dotcargo
@@ -178,14 +180,12 @@ jobs:
178
180
strategy :
179
181
matrix :
180
182
os :
181
- - ubuntu-latest
182
- - macos-latest
183
- - windows-latest
183
+ - ubuntu-latest
184
184
runs-on : ${{ matrix.os }}
185
185
steps :
186
186
- uses : actions/checkout@v3
187
187
- name : Cache cargo build and registry
188
- uses : actions/cache@v3
188
+ uses : actions/cache@v4
189
189
with :
190
190
path : |
191
191
~/.cargo/registry
@@ -213,7 +213,7 @@ jobs:
213
213
steps :
214
214
- uses : actions/checkout@v3
215
215
- name : Cache cargo build and registry
216
- uses : actions/cache@v3
216
+ uses : actions/cache@v4
217
217
with :
218
218
path : |
219
219
~/.cargo/registry
@@ -232,7 +232,7 @@ jobs:
232
232
# steps:
233
233
# - uses: actions/checkout@v3
234
234
# - name: Cache cargo build and registry
235
- # uses: actions/cache@v3
235
+ # uses: actions/cache@v4
236
236
# with:
237
237
# path: |
238
238
# ~/.cargo/registry
@@ -267,7 +267,7 @@ jobs:
267
267
steps :
268
268
- uses : actions/checkout@v3
269
269
- name : Cache cargo build and registry
270
- uses : actions/cache@v3
270
+ uses : actions/cache@v4
271
271
with :
272
272
path : |
273
273
~/.cargo/registry
@@ -309,12 +309,12 @@ jobs:
309
309
crate : cargo-tarpaulin
310
310
version : latest
311
311
- name : Cache ~/.cargo
312
- uses : actions/cache@v3
312
+ uses : actions/cache@v4
313
313
with :
314
314
path : ~/.cargo
315
315
key : ${{ runner.os }}-coverage-dotcargo
316
316
- name : Cache cargo build
317
- uses : actions/cache@v3
317
+ uses : actions/cache@v4
318
318
with :
319
319
path : target
320
320
key : ${{ runner.os }}-coverage-cargo-build-target
@@ -324,7 +324,8 @@ jobs:
324
324
command : tarpaulin
325
325
args : --all-features --run-types tests --run-types doctests --workspace --out xml
326
326
- name : Upload to codecov.io
327
- uses : codecov/codecov-action@v3.1.1
327
+ uses : codecov/codecov-action@v5
328
328
with :
329
329
token : ${{ secrets.CODECOV_TOKEN }}
330
330
fail_ci_if_error : true
331
+ slug : ${{ github.repository }}
0 commit comments