This commit is contained in:
era 2025-01-19 14:47:05 +03:30
parent ae01fd6c1f
commit 65a7294b7e
No known key found for this signature in database
GPG Key ID: D09203E19A264BC3
6 changed files with 64 additions and 4 deletions

View File

@ -2,7 +2,7 @@ when:
- event: manual
steps:
- name: buildx
- name: build_and_publish
image: woodpeckerci/plugin-kaniko
settings:
dockerfile: .woodpecker/Dockerfile

View File

@ -0,0 +1,14 @@
when:
- event: push
- event: pull_request
- event: cron
cron: ci
steps:
- name: linux
image: codeberg.org/3ra/ballistica-dev:latest
pull: true
commands:
- make env
- make cmake-server-build
- BA_PCOMMANDBATCH_BUILD_REQUIRE=1 BA_APP_RUN_ENABLE_BUILDS=1 BA_APP_RUN_BUILD_HEADLESS=1 make test

13
.woodpecker/ci/check.yaml Normal file
View File

@ -0,0 +1,13 @@
when:
- event: push
- event: pull_request
- event: cron
cron: ci
steps:
- name: linux
image: codeberg.org/3ra/ballistica-dev:latest
pull: true
commands:
- make env
- BA_PCOMMANDBATCH_BUILD_REQUIRE=1 make check

View File

@ -0,0 +1,16 @@
when:
- event: push
- event: pull_request
- event: cron
cron: ci
steps:
- name: linux
image: codeberg.org/3ra/ballistica-dev:latest
pull: true
commands:
- make env
- tools/spinoff fset-copy template_fs poo
- make update
- make cmake-modular-server-build
- cd build/cmake/modular-server-debug/staged/dist && PYTHONPATH=ba_data/python ./ballisticakit_headless -c "import baenv; baenv.configure(); import bapoo; print(bapoo)"

View File

@ -0,0 +1,14 @@
when:
- event: push
- event: pull_request
- event: cron
cron: ci
steps:
- name: linux
image: codeberg.org/3ra/ballistica-dev:latest
pull: true
commands:
- make env
- make spinoff-test-core
- make spinoff-test-base

View File

@ -22,7 +22,9 @@ steps:
- mv -v build/prefab/full/mac_arm64_gui/debug build/prefab/full/mac_arm64_gui/ballisticakit_mac
- tar cvzfC ballisticakit_mac.tar.gz build/prefab/full/mac_arm64_gui ballisticakit_mac
- mv -v build/prefab/full/windows_x86_gui/debug build/prefab/full/windows_x86_gui/ballisticakit_windows
- zip -jr ballisticakit_windows.zip build/prefab/full/windows_x86_gui
- cd build/prefab/full/windows_x86_gui
- zip -r ../../../../ballisticakit_windows.zip ballisticakit_windows
- cd ../../../..
- mv -v build/prefab/full/linux_arm64_server/debug build/prefab/full/linux_arm64_server/ballisticakit_linux_arm64_server
- tar cvzfC ballisticakit_linux_arm64_server.tar.gz build/prefab/full/linux_arm64_server ballisticakit_linux_arm64_server
- mv -v build/prefab/full/linux_x86_64_server/debug build/prefab/full/linux_x86_64_server/ballisticakit_linux_x86_64_server
@ -30,7 +32,9 @@ steps:
- mv -v build/prefab/full/mac_arm64_server/debug build/prefab/full/mac_arm64_server/ballisticakit_mac_server
- tar cvzfC ballisticakit_mac_server.tar.gz build/prefab/full/mac_arm64_server ballisticakit_mac_server
- mv -v build/prefab/full/windows_x86_server/debug build/prefab/full/windows_x86_server/ballisticakit_windows_server
- zip -jr ballisticakit_windows_server.zip build/prefab/full/windows_x86_server
- cd build/prefab/full/windows_x86_server
- zip -r ../../../../ballisticakit_windows_server.zip ballisticakit_windows_server
- cd ../../../..
- name: publish
image: woodpeckerci/plugin-release
settings:
@ -47,4 +51,3 @@ steps:
- 'ballisticakit_windows_server.zip'
note: 'These are debug prefab builds; use them for testing purposes only. Check out https://ballistica.net/downloads for official/blessed release builds'
title: ${CI_COMMIT_TAG}
depends_on: [build]