@@ -104,6 +104,33 @@ jobs:
104
104
name : fstar-code
105
105
path : ./lakers-fstar.zip
106
106
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
+
107
134
108
135
run-example-on-qemu :
109
136
needs : unit-tests
@@ -173,7 +200,7 @@ jobs:
173
200
174
201
release :
175
202
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 ]
177
204
if : >-
178
205
github.event_name == 'push' &&
179
206
startsWith(github.event.ref, 'refs/tags')
@@ -186,6 +213,11 @@ jobs:
186
213
with :
187
214
name : fstar-code
188
215
path : ./release-artifacts
216
+ - name : Download artifacts
217
+ uses : actions/download-artifact@v3
218
+ with :
219
+ name : lakers-c
220
+ path : ./release-artifacts
189
221
- name : Release
190
222
uses : ncipollo/release-action@v1
191
223
with :
0 commit comments