mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 01:18:06 +00:00
14 lines
538 B
Bash
Executable file
14 lines
538 B
Bash
Executable file
#!/bin/bash -eu
|
|
|
|
source tests/docker_env.sh
|
|
build_image
|
|
#run_in_docker rm -rf CMakeFiles
|
|
run_in_docker mkdir -p build_in_docker
|
|
run_in_docker -w "$PWD/build_in_docker" cmake -DENABLE_EMULATION=1 -D__FOR_CI=1 -DENABLE_EDDSA=1 ..
|
|
run_in_docker -w "$PWD/build_in_docker" make -j ${NUM_PROC}
|
|
docker create --name temp_container pico-hsm-test:bullseye
|
|
docker cp $PWD/build_in_docker/pico_hsm temp_container:/pico_hsm
|
|
docker commit temp_container pico-hsm-test:bullseye
|
|
docker stop temp_container
|
|
docker rm temp_container
|
|
docker image prune -f
|