diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 02326061..15255b9c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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 @@ -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') @@ -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: