From ffd320507f15c5dba8e5d627e67739d19a2c956c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 23 Jan 2024 20:42:09 +0300 Subject: [PATCH] ci: enable builds.sr.ht --- .builds/alpine.yml | 27 +++++++++++++++++++++++++++ .builds/debian-arm64.yml | 30 ++++++++++++++++++++++++++++++ .builds/debian.yml | 29 +++++++++++++++++++++++++++++ .builds/freebsd.yml | 29 +++++++++++++++++++++++++++++ .builds/netbsd.yml | 29 +++++++++++++++++++++++++++++ .builds/openbsd.yml | 26 ++++++++++++++++++++++++++ 6 files changed, 170 insertions(+) create mode 100644 .builds/alpine.yml create mode 100644 .builds/debian-arm64.yml create mode 100644 .builds/debian.yml create mode 100644 .builds/freebsd.yml create mode 100644 .builds/netbsd.yml create mode 100644 .builds/openbsd.yml diff --git a/.builds/alpine.yml b/.builds/alpine.yml new file mode 100644 index 00000000..530fa14b --- /dev/null +++ b/.builds/alpine.yml @@ -0,0 +1,27 @@ +image: alpine/latest +packages: +- build-base +- sdl2-dev +- freetype-dev +- fontconfig-dev +- opus-dev +sources: +- https://git.sr.ht/~a1batross/xash3d-fwgs +tasks: +- client: | + cd xash3d-fwgs + ./waf configure -8 --enable-tests --enable-engine-tests build install --destdir=bin +- server: | + cd xash3d-fwgs + ./waf configure --reconfigure --dedicated build install --destdir=bin +- run-tests: | + cd xash3d-fwgs/bin + export SDL_VIDEODRIVER=wayland + ./xash3d -runtests + ./xash -runtests + rm -rf valve/gameinfo.txt test_* +- package: | + cd xash3d-fwgs/bin + tar -cjvf xash3d-fwgs-alpine-amd64.tar.bz2 * +artifacts: +- xash3d-fwgs/bin/xash3d-fwgs-alpine-amd64.tar.bz2 diff --git a/.builds/debian-arm64.yml b/.builds/debian-arm64.yml new file mode 100644 index 00000000..77d0a7a8 --- /dev/null +++ b/.builds/debian-arm64.yml @@ -0,0 +1,30 @@ +image: debian/sid +arch: amd64 +packages: +- build-essential +- python-is-python3 +- libsdl2-dev +- libfreetype-dev +- libfontconfig-dev +- libopus-dev +sources: +- https://git.sr.ht/~a1batross/xash3d-fwgs +tasks: +- client: | + cd xash3d-fwgs + ./waf configure -8 --enable-tests --enable-engine-tests build install --destdir=bin +- server: | + cd xash3d-fwgs + ./waf configure --reconfigure --dedicated build install --destdir=bin +- run-tests: | + cd xash3d-fwgs/bin + export SDL_VIDEODRIVER=wayland + ./xash3d -runtests + ./xash -runtests + rm -rf valve/gameinfo.txt test_* +- package: | + cd xash3d-fwgs/bin + tar -cjvf xash3d-fwgs-debian-arm64.tar.bz2 * +artifacts: +- xash3d-fwgs/bin/xash3d-fwgs-debian-arm64.tar.bz2 + diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 00000000..c1fff64f --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,29 @@ +image: debian/sid +packages: +- build-essential +- python-is-python3 +- libsdl2-dev +- libfreetype-dev +- libfontconfig-dev +- libopus-dev +sources: +- https://git.sr.ht/~a1batross/xash3d-fwgs +tasks: +- client: | + cd xash3d-fwgs + ./waf configure -8 --enable-tests --enable-engine-tests build install --destdir=bin +- server: | + cd xash3d-fwgs + ./waf configure --reconfigure --dedicated build install --destdir=bin +- run-tests: | + cd xash3d-fwgs/bin + export SDL_VIDEODRIVER=wayland + ./xash3d -runtests + ./xash -runtests + rm -rf valve/gameinfo.txt test_* +- package: | + cd xash3d-fwgs/bin + tar -cjvf xash3d-fwgs-debian-amd64.tar.bz2 * +artifacts: +- xash3d-fwgs/bin/xash3d-fwgs-debian-amd64.tar.bz2 + diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml new file mode 100644 index 00000000..54e9273f --- /dev/null +++ b/.builds/freebsd.yml @@ -0,0 +1,29 @@ +image: freebsd/latest +packages: +- lang/python +- devel/pkgconf +- devel/sdl20 +- print/freetype2 +- x11-fonts/fontconfig +- audio/opus +sources: +- https://git.sr.ht/~a1batross/xash3d-fwgs +tasks: +- client: | + cd xash3d-fwgs + ./waf configure --enable-tests --enable-engine-tests build install --destdir=bin +- server: | + cd xash3d-fwgs + ./waf configure --reconfigure --dedicated build install --destdir=bin +- run-tests: | + cd xash3d-fwgs/bin + export SDL_VIDEODRIVER=wayland + ./xash3d -runtests + ./xash -runtests + rm -rf valve/gameinfo.txt test_* +- package: | + cd xash3d-fwgs/bin + tar -cjvf xash3d-fwgs-freebsd-amd64.tar.bz2 * +artifacts: +- xash3d-fwgs/bin/xash3d-fwgs-freebsd-amd64.tar.bz2 + diff --git a/.builds/netbsd.yml b/.builds/netbsd.yml new file mode 100644 index 00000000..ee4bccab --- /dev/null +++ b/.builds/netbsd.yml @@ -0,0 +1,29 @@ +image: netbsd/latest +packages: +- python311 +- SDL2 +- freetype2 +- fontconfig +- libopus +- pkgconf +sources: +- https://git.sr.ht/~a1batross/xash3d-fwgs +tasks: +- client: | + cd xash3d-fwgs + python3.11 waf configure --enable-tests --enable-engine-tests build install --destdir=bin +- server: | + cd xash3d-fwgs + python3.11 waf configure --reconfigure --dedicated build install --destdir=bin +- run-tests: | + cd xash3d-fwgs/bin + export SDL_VIDEODRIVER=wayland + ./xash3d -runtests + ./xash -runtests + rm -rf valve/gameinfo.txt test_* +- package: | + cd xash3d-fwgs/bin + tar -cjvf xash3d-fwgs-netbsd-amd64.tar.bz2 * +artifacts: +- xash3d-fwgs/bin/xash3d-fwgs-netbsd-amd64.tar.bz2 + diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml new file mode 100644 index 00000000..58b2c903 --- /dev/null +++ b/.builds/openbsd.yml @@ -0,0 +1,26 @@ +image: openbsd/latest +packages: +- python3 +- sdl2 +- opus +sources: +- https://git.sr.ht/~a1batross/xash3d-fwgs +tasks: +- client: | + cd xash3d-fwgs + python3 waf configure --enable-tests --enable-engine-tests build install --destdir=bin +- server: | + cd xash3d-fwgs + python3 waf configure --reconfigure --dedicated build install --destdir=bin +- run-tests: | + cd xash3d-fwgs/bin + export SDL_VIDEODRIVER=wayland + ./xash3d -runtests + ./xash -runtests + rm -rf valve/gameinfo.txt test_* +- package: | + cd xash3d-fwgs/bin + tar -cjvf xash3d-fwgs-openbsd-amd64.tar.bz2 * +artifacts: +- xash3d-fwgs/bin/xash3d-fwgs-openbsd-amd64.tar.bz2 +