chiaki/scripts/run-podman-build-bullseye.sh
Florian Märkl 4164255ef9 Update dependencies and fix CI
* nanopb 0.4.6.4 with PB_C99_STATIC_ASSERT to avoid depending on C11
* OpenSSL 1.1.1q on windows
* Switched from docker to podman in CI
* Appdir in appimage build container is now in /build/appdir to fix
  "Invalid cross-device link" errors in linuxdeploy when appdir is in
  mount
* Use python protobuf==3.19.5 in bionic image, which still supports
  python 3.6, and on windows where nanopb otherwise has issues
* Purge nanopb_pb2.py to force regeneration of it for possibly different
  python protobuf versions in subsequent builds
* FreeBSD needs py39 packages now
2022-09-24 15:18:53 +02:00

16 lines
472 B
Bash
Executable File

#!/bin/bash
set -xe
cd "`dirname $(readlink -f ${0})`"
podman build -t chiaki-bullseye . -f Dockerfile.bullseye
cd ..
podman run --rm -v "`pwd`:/build" chiaki-bullseye /bin/bash -c "
cd /build &&
rm -fv third-party/nanopb/generator/proto/nanopb_pb2.py &&
mkdir build_bullseye &&
cmake -Bbuild_bullseye -GNinja -DCHIAKI_ENABLE_SETSU=ON -DCHIAKI_USE_SYSTEM_JERASURE=ON -DCHIAKI_USE_SYSTEM_NANOPB=ON &&
ninja -C build_bullseye &&
ninja -C build_bullseye test"