mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-03-12 05:25:23 -07:00
* 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
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
|
|
image: alpine/edge # on edge for https://gitlab.alpinelinux.org/alpine/aports/-/issues/13287
|
|
|
|
sources:
|
|
- https://git.sr.ht/~thestr4ng3r/chiaki
|
|
|
|
packages:
|
|
- cmake
|
|
- ninja
|
|
- protoc
|
|
- py3-protobuf
|
|
- py3-setuptools
|
|
- opus-dev
|
|
- qt5-qtbase-dev
|
|
- qt5-qtsvg-dev
|
|
- qt5-qtmultimedia-dev
|
|
- ffmpeg-dev
|
|
- sdl2-dev
|
|
- podman
|
|
- fuse
|
|
- udev
|
|
- argp-standalone
|
|
|
|
artifacts:
|
|
- chiaki.nro
|
|
- Chiaki.AppImage
|
|
|
|
tasks:
|
|
- setup_podman: |
|
|
sudo rc-service udev start
|
|
sudo rc-service cgroups start
|
|
sudo rc-service fuse start # Fuse for AppImages
|
|
echo build:100000:65536 | sudo tee /etc/subuid
|
|
echo build:100000:65536 | sudo tee /etc/subgid
|
|
# https://www.kernel.org/doc/Documentation/networking/tuntap.txt
|
|
# for slirp4netns
|
|
sudo mkdir -p /dev/net
|
|
sudo mknod /dev/net/tun c 10 200
|
|
sudo chmod 0666 /dev/net/tun
|
|
- local_build_and_test: |
|
|
cd chiaki
|
|
cmake -Bbuild -GNinja -DCHIAKI_ENABLE_CLI=ON -DCHIAKI_ENABLE_GUI=ON -DCHIAKI_CLI_ARGP_STANDALONE=ON
|
|
ninja -C build
|
|
build/test/chiaki-unit
|
|
- appimage: |
|
|
cd chiaki
|
|
scripts/run-podman-build-appimage.sh
|
|
cp appimage/Chiaki.AppImage ../Chiaki.AppImage
|
|
- switch: |
|
|
cd chiaki
|
|
scripts/switch/run-podman-build-chiaki.sh
|
|
cp build_switch/switch/chiaki.nro ../chiaki.nro
|
|
- bullseye: |
|
|
cd chiaki
|
|
scripts/run-podman-build-bullseye.sh
|