Skip to content

Commit a0e99ff

Browse files
committed
Mount wolfSSL for the STM32 and PIC32MZ sim wolfcrypt runs
1 parent f3a66b5 commit a0e99ff

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/device-sims.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ jobs:
4141
dockerfile: Dockerfile.wolfcrypt
4242
- sim: STM32Sim
4343
dockerfile: Dockerfile.wolfcrypt
44+
wolfssl_mount: 'yes'
4445
- sim: PIC32MZSim
4546
dockerfile: Dockerfile.wolfcrypt-direct
47+
wolfssl_mount: 'yes'
4648
timeout-minutes: 40
4749
steps:
4850
- name: Fetch wolfSSL/simulators
@@ -56,4 +58,10 @@ jobs:
5658
set -euo pipefail
5759
docker build -f "/tmp/sims/${{ matrix.sim }}/${{ matrix.dockerfile }}" \
5860
-t sim-wolfcrypt "/tmp/sims/${{ matrix.sim }}"
59-
docker run --rm sim-wolfcrypt
61+
# MCU sims mount wolfSSL at run time; secure-element sims clone it inside.
62+
if [ -n "${{ matrix.wolfssl_mount }}" ]; then
63+
git clone -q --depth 1 https://github.com/wolfSSL/wolfssl /tmp/wolfssl-mnt
64+
docker run --rm -v /tmp/wolfssl-mnt:/opt/wolfssl:ro sim-wolfcrypt
65+
else
66+
docker run --rm sim-wolfcrypt
67+
fi

0 commit comments

Comments
 (0)