diff --git a/.woodpecker/ballistica_dev_image.yaml b/.woodpecker/ballistica_dev_image.yaml index 0db9e545..155e96b1 100644 --- a/.woodpecker/ballistica_dev_image.yaml +++ b/.woodpecker/ballistica_dev_image.yaml @@ -2,7 +2,7 @@ when: - event: manual steps: - - name: buildx + - name: build_and_publish image: woodpeckerci/plugin-kaniko settings: dockerfile: .woodpecker/Dockerfile diff --git a/.woodpecker/ci/build_and_test.yaml b/.woodpecker/ci/build_and_test.yaml new file mode 100644 index 00000000..82a4d68c --- /dev/null +++ b/.woodpecker/ci/build_and_test.yaml @@ -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 diff --git a/.woodpecker/ci/check.yaml b/.woodpecker/ci/check.yaml new file mode 100644 index 00000000..60606f4f --- /dev/null +++ b/.woodpecker/ci/check.yaml @@ -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 diff --git a/.woodpecker/ci/feature_set_copy_test.yaml b/.woodpecker/ci/feature_set_copy_test.yaml new file mode 100644 index 00000000..61ea7fdd --- /dev/null +++ b/.woodpecker/ci/feature_set_copy_test.yaml @@ -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)" diff --git a/.woodpecker/ci/spinoff_test.yaml b/.woodpecker/ci/spinoff_test.yaml new file mode 100644 index 00000000..35e7be33 --- /dev/null +++ b/.woodpecker/ci/spinoff_test.yaml @@ -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 diff --git a/.woodpecker/release.yaml b/.woodpecker/release.yaml index 75ad71dc..41bbdefa 100644 --- a/.woodpecker/release.yaml +++ b/.woodpecker/release.yaml @@ -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]