Skip to content

Commit

Permalink
fix: update actions checkout and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
geonnave committed Oct 11, 2024
1 parent a46841a commit 1221fa5
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Rust formatter
run: rustup component add rustfmt
- name: Check if code is well formatted
Expand All @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Checkout lakers
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate fstar code over lakers and lakers-shared
run: |
Expand All @@ -98,7 +98,7 @@ jobs:
zip -j -r lakers-fstar.zip $(find . -name *fst)
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: fstar-code
path: ./lakers-fstar.zip
Expand All @@ -114,7 +114,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: lakers-c
name: lakers-c-${{ matrix.crypto_backend }}
path: ./target/lakers-c-*.zip


Expand All @@ -140,10 +140,10 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout libcoap
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: obgm/libcoap
path: libcoap
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build server
run: cargo build --bin coapserver
Expand All @@ -273,7 +273,7 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/[email protected]
with:
Expand All @@ -282,7 +282,7 @@ jobs:
- name: Download artifacts
uses: actions/[email protected]
with:
name: lakers-c
pattern: lakers-c*
path: ./release-artifacts
- name: Release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 1221fa5

Please sign in to comment.