Skip to content

Commit d806f7a

Browse files
authored
Merge pull request #311 from geonnave/fix-github-action-update-to-v4
Fix: update github actions checkout and upload
2 parents a46841a + 1844cb7 commit d806f7a

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.github/workflows/build-and-test.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repo
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: Install Rust formatter
2020
run: rustup component add rustfmt
2121
- name: Check if code is well formatted
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repo
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

3535
- name: Run unit tests with default features
3636
run: RUST_BACKTRACE=1 cargo test
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repo
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
5252

5353
- name: Run unit tests with feature matrix # note that we only add `--package lakers-ead-authz` when testing with that config
5454
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,7 +65,7 @@ jobs:
6565

6666
steps:
6767
- name: Checkout repo
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v4
6969

7070
- name: Install arm targets for Rust
7171
run: rustup target add thumbv7m-none-eabi && rustup target add thumbv7em-none-eabihf
@@ -81,7 +81,7 @@ jobs:
8181

8282
steps:
8383
- name: Checkout lakers
84-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
8585

8686
- name: Generate fstar code over lakers and lakers-shared
8787
run: |
@@ -98,7 +98,7 @@ jobs:
9898
zip -j -r lakers-fstar.zip $(find . -name *fst)
9999
100100
- name: Upload artifact
101-
uses: actions/upload-artifact@v3
101+
uses: actions/upload-artifact@v4
102102
with:
103103
name: fstar-code
104104
path: ./lakers-fstar.zip
@@ -114,7 +114,7 @@ jobs:
114114

115115
steps:
116116
- name: Checkout repo
117-
uses: actions/checkout@v3
117+
uses: actions/checkout@v4
118118

119119
- name: Install arm targets for Rust
120120
run: rustup target add thumbv7em-none-eabihf
@@ -125,9 +125,9 @@ jobs:
125125
run: cd lakers-c && ./build.sh "${{ matrix.crypto_backend }}"
126126

127127
- name: Upload artifact
128-
uses: actions/upload-artifact@v3
128+
uses: actions/upload-artifact@v4
129129
with:
130-
name: lakers-c
130+
name: lakers-c-${{ matrix.crypto_backend }}
131131
path: ./target/lakers-c-*.zip
132132

133133

@@ -140,10 +140,10 @@ jobs:
140140

141141
steps:
142142
- name: Checkout repo
143-
uses: actions/checkout@v3
143+
uses: actions/checkout@v4
144144

145145
- name: Checkout libcoap
146-
uses: actions/checkout@v3
146+
uses: actions/checkout@v4
147147
with:
148148
repository: obgm/libcoap
149149
path: libcoap
@@ -177,7 +177,7 @@ jobs:
177177

178178
steps:
179179
- name: Checkout repo
180-
uses: actions/checkout@v3
180+
uses: actions/checkout@v4
181181

182182
- name: set up python
183183
uses: actions/setup-python@v5
@@ -206,7 +206,7 @@ jobs:
206206

207207
steps:
208208
- name: Checkout repo
209-
uses: actions/checkout@v3
209+
uses: actions/checkout@v4
210210

211211
- name: Install arm targets for Rust
212212
run: rustup target add thumbv7m-none-eabi
@@ -230,7 +230,7 @@ jobs:
230230

231231
steps:
232232
- name: Checkout repo
233-
uses: actions/checkout@v3
233+
uses: actions/checkout@v4
234234

235235
- name: Install arm targets for Rust
236236
run: rustup target add thumbv7em-none-eabihf
@@ -247,7 +247,7 @@ jobs:
247247

248248
steps:
249249
- name: Checkout repo
250-
uses: actions/checkout@v3
250+
uses: actions/checkout@v4
251251

252252
- name: Build server
253253
run: cargo build --bin coapserver
@@ -273,7 +273,7 @@ jobs:
273273
274274
steps:
275275
- name: Checkout repo
276-
uses: actions/checkout@v3
276+
uses: actions/checkout@v4
277277
- name: Download artifacts
278278
uses: actions/download-artifact@v4.1.7
279279
with:
@@ -282,7 +282,7 @@ jobs:
282282
- name: Download artifacts
283283
uses: actions/download-artifact@v4.1.7
284284
with:
285-
name: lakers-c
285+
pattern: lakers-c*
286286
path: ./release-artifacts
287287
- name: Release
288288
uses: ncipollo/release-action@v1

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ default-members = [
3131
resolver = "2"
3232

3333
[workspace.package]
34-
version = "0.7.0"
34+
version = "0.7.1"
3535
repository = "https://github.com/openwsn-berkeley/lakers/"
3636
license = "BSD-3-Clause"
3737
readme = "shared/README.md"
@@ -40,16 +40,16 @@ categories = [ "no-std::no-alloc", "network-programming", "embedded" ]
4040

4141
[workspace.dependencies]
4242

43-
lakers-shared = { package = "lakers-shared", path = "shared/", version = "^0.7.0" }
43+
lakers-shared = { package = "lakers-shared", path = "shared/", version = "^0.7.1" }
4444

45-
lakers-ead-authz = { package = "lakers-ead-authz", path = "ead/lakers-ead-authz/", version = "^0.7.0" }
45+
lakers-ead-authz = { package = "lakers-ead-authz", path = "ead/lakers-ead-authz/", version = "^0.7.1" }
4646

4747
lakers-crypto = { path = "crypto/" }
4848
lakers-crypto-cryptocell310 = { path = "crypto/lakers-crypto-cryptocell310-sys/" }
4949
lakers-crypto-psa = { path = "crypto/lakers-crypto-psa/" }
50-
lakers-crypto-rustcrypto = { package = "lakers-crypto-rustcrypto", path = "crypto/lakers-crypto-rustcrypto/", version = "^0.7.0" }
50+
lakers-crypto-rustcrypto = { package = "lakers-crypto-rustcrypto", path = "crypto/lakers-crypto-rustcrypto/", version = "^0.7.1" }
5151

52-
lakers = { package = "lakers", path = "lib/", version = "^0.7.0", default-features = false }
52+
lakers = { package = "lakers", path = "lib/", version = "^0.7.1", default-features = false }
5353

5454
[patch.crates-io]
5555
psa-crypto = { git = "https://github.com/malishav/rust-psa-crypto", branch = "baremetal" }

0 commit comments

Comments
 (0)