Skip to content

Commit 626af3d

Browse files
authored
Merge pull request #206 from geonnave/add-ci-to-lakers-c
Add ci entry for lakers-c
2 parents a0f24af + 7d6ca09 commit 626af3d

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

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

+33-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,33 @@ jobs:
104104
name: fstar-code
105105
path: ./lakers-fstar.zip
106106

107+
build-lakers-c:
108+
needs: unit-tests
109+
runs-on: ubuntu-latest
110+
111+
strategy:
112+
fail-fast: false
113+
matrix:
114+
crypto_backend: [crypto-rustcrypto, crypto-psa-baremetal, crypto-cryptocell310]
115+
116+
steps:
117+
- name: Checkout repo
118+
uses: actions/checkout@v3
119+
120+
- name: Install arm targets for Rust
121+
run: rustup target add thumbv7em-none-eabihf
122+
- name: Install arm gcc
123+
run: sudo apt-get -y update && sudo apt-get -y install gcc-arm-none-eabi
124+
125+
- name: Build static library, generate headers, and zip to file
126+
run: cd lakers-c && ./build.sh "${{ matrix.crypto_backend }}"
127+
128+
- name: Upload artifact
129+
uses: actions/upload-artifact@v3
130+
with:
131+
name: lakers-c
132+
path: ./target/lakers-c-*.zip
133+
107134

108135
run-example-on-qemu:
109136
needs: unit-tests
@@ -173,7 +200,7 @@ jobs:
173200

174201
release:
175202
runs-on: ubuntu-latest
176-
needs: [build-edhoc-package, run-example-on-qemu, build-example-for-cortex-m4, build-coap-example, generate-fstar]
203+
needs: [build-edhoc-package, run-example-on-qemu, build-example-for-cortex-m4, build-coap-example, generate-fstar, build-lakers-c]
177204
if: >-
178205
github.event_name == 'push' &&
179206
startsWith(github.event.ref, 'refs/tags')
@@ -186,6 +213,11 @@ jobs:
186213
with:
187214
name: fstar-code
188215
path: ./release-artifacts
216+
- name: Download artifacts
217+
uses: actions/download-artifact@v3
218+
with:
219+
name: lakers-c
220+
path: ./release-artifacts
189221
- name: Release
190222
uses: ncipollo/release-action@v1
191223
with:

0 commit comments

Comments
 (0)