Skip to content

Commit

Permalink
Merge pull request openwsn-berkeley#206 from geonnave/add-ci-to-lakers-c
Browse files Browse the repository at this point in the history
Add ci entry for lakers-c
  • Loading branch information
geonnave authored Feb 2, 2024
2 parents a0f24af + 7d6ca09 commit 626af3d
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,33 @@ jobs:
name: fstar-code
path: ./lakers-fstar.zip

build-lakers-c:
needs: unit-tests
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
crypto_backend: [crypto-rustcrypto, crypto-psa-baremetal, crypto-cryptocell310]

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

- name: Install arm targets for Rust
run: rustup target add thumbv7em-none-eabihf
- name: Install arm gcc
run: sudo apt-get -y update && sudo apt-get -y install gcc-arm-none-eabi

- name: Build static library, generate headers, and zip to file
run: cd lakers-c && ./build.sh "${{ matrix.crypto_backend }}"

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: lakers-c
path: ./target/lakers-c-*.zip


run-example-on-qemu:
needs: unit-tests
Expand Down Expand Up @@ -173,7 +200,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: [build-edhoc-package, run-example-on-qemu, build-example-for-cortex-m4, build-coap-example, generate-fstar]
needs: [build-edhoc-package, run-example-on-qemu, build-example-for-cortex-m4, build-coap-example, generate-fstar, build-lakers-c]
if: >-
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags')
Expand All @@ -186,6 +213,11 @@ jobs:
with:
name: fstar-code
path: ./release-artifacts
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: lakers-c
path: ./release-artifacts
- name: Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 626af3d

Please sign in to comment.