15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout repo
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
- name : Install Rust formatter
20
20
run : rustup component add rustfmt
21
21
- name : Check if code is well formatted
30
30
31
31
steps :
32
32
- name : Checkout repo
33
- uses : actions/checkout@v3
33
+ uses : actions/checkout@v4
34
34
35
35
- name : Run unit tests with default features
36
36
run : RUST_BACKTRACE=1 cargo test
48
48
49
49
steps :
50
50
- name : Checkout repo
51
- uses : actions/checkout@v3
51
+ uses : actions/checkout@v4
52
52
53
53
- name : Run unit tests with feature matrix # note that we only add `--package lakers-ead-authz` when testing with that config
54
54
run : RUST_BACKTRACE=1 cargo test -p lakers -p lakers-crypto -p lakers-shared ${{ matrix.ead == 'ead-authz' && '-p lakers-ead-authz' || '' }} --no-default-features --features="${{ matrix.crypto_backend }}, test-${{ matrix.ead }}" --no-fail-fast -- --test-threads 1
65
65
66
66
steps :
67
67
- name : Checkout repo
68
- uses : actions/checkout@v3
68
+ uses : actions/checkout@v4
69
69
70
70
- name : Install arm targets for Rust
71
71
run : rustup target add thumbv7m-none-eabi && rustup target add thumbv7em-none-eabihf
81
81
82
82
steps :
83
83
- name : Checkout lakers
84
- uses : actions/checkout@v3
84
+ uses : actions/checkout@v4
85
85
86
86
- name : Generate fstar code over lakers and lakers-shared
87
87
run : |
98
98
zip -j -r lakers-fstar.zip $(find . -name *fst)
99
99
100
100
- name : Upload artifact
101
- uses : actions/upload-artifact@v3
101
+ uses : actions/upload-artifact@v4
102
102
with :
103
103
name : fstar-code
104
104
path : ./lakers-fstar.zip
@@ -114,7 +114,7 @@ jobs:
114
114
115
115
steps :
116
116
- name : Checkout repo
117
- uses : actions/checkout@v3
117
+ uses : actions/checkout@v4
118
118
119
119
- name : Install arm targets for Rust
120
120
run : rustup target add thumbv7em-none-eabihf
@@ -125,9 +125,9 @@ jobs:
125
125
run : cd lakers-c && ./build.sh "${{ matrix.crypto_backend }}"
126
126
127
127
- name : Upload artifact
128
- uses : actions/upload-artifact@v3
128
+ uses : actions/upload-artifact@v4
129
129
with :
130
- name : lakers-c
130
+ name : lakers-c-${{ matrix.crypto_backend }}
131
131
path : ./target/lakers-c-*.zip
132
132
133
133
@@ -140,10 +140,10 @@ jobs:
140
140
141
141
steps :
142
142
- name : Checkout repo
143
- uses : actions/checkout@v3
143
+ uses : actions/checkout@v4
144
144
145
145
- name : Checkout libcoap
146
- uses : actions/checkout@v3
146
+ uses : actions/checkout@v4
147
147
with :
148
148
repository : obgm/libcoap
149
149
path : libcoap
@@ -177,7 +177,7 @@ jobs:
177
177
178
178
steps :
179
179
- name : Checkout repo
180
- uses : actions/checkout@v3
180
+ uses : actions/checkout@v4
181
181
182
182
- name : set up python
183
183
uses : actions/setup-python@v5
@@ -206,7 +206,7 @@ jobs:
206
206
207
207
steps :
208
208
- name : Checkout repo
209
- uses : actions/checkout@v3
209
+ uses : actions/checkout@v4
210
210
211
211
- name : Install arm targets for Rust
212
212
run : rustup target add thumbv7m-none-eabi
@@ -230,7 +230,7 @@ jobs:
230
230
231
231
steps :
232
232
- name : Checkout repo
233
- uses : actions/checkout@v3
233
+ uses : actions/checkout@v4
234
234
235
235
- name : Install arm targets for Rust
236
236
run : rustup target add thumbv7em-none-eabihf
@@ -247,7 +247,7 @@ jobs:
247
247
248
248
steps :
249
249
- name : Checkout repo
250
- uses : actions/checkout@v3
250
+ uses : actions/checkout@v4
251
251
252
252
- name : Build server
253
253
run : cargo build --bin coapserver
@@ -273,7 +273,7 @@ jobs:
273
273
274
274
steps :
275
275
- name : Checkout repo
276
- uses : actions/checkout@v3
276
+ uses : actions/checkout@v4
277
277
- name : Download artifacts
278
278
uses : actions/download-artifact@v4.1.7
279
279
with :
@@ -282,7 +282,7 @@ jobs:
282
282
- name : Download artifacts
283
283
uses : actions/download-artifact@v4.1.7
284
284
with :
285
- name : lakers-c
285
+ pattern : lakers-c*
286
286
path : ./release-artifacts
287
287
- name : Release
288
288
uses : ncipollo/release-action@v1
0 commit comments