mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 07:23:37 +08:00
more work on release.yaml
This commit is contained in:
parent
a39fbf444f
commit
70fb2b058f
@ -10,9 +10,6 @@ steps:
|
|||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make env
|
- make env
|
||||||
- make assets
|
|
||||||
- make resources
|
|
||||||
- make meta
|
|
||||||
- cd ..
|
- cd ..
|
||||||
- cp -r -v $CI_REPO_NAME check_linux
|
- cp -r -v $CI_REPO_NAME check_linux
|
||||||
- cp -r -v $CI_REPO_NAME build_and_test_linux
|
- cp -r -v $CI_REPO_NAME build_and_test_linux
|
||||||
|
|||||||
@ -3,10 +3,21 @@ when:
|
|||||||
ref: refs/tags/v*
|
ref: refs/tags/v*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-general
|
- name: parallel-prepare
|
||||||
image: codeberg.org/3ra/ballistica-dev:latest
|
image: codeberg.org/3ra/ballistica-dev:latest
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
|
- make env
|
||||||
|
- cd ..
|
||||||
|
- cp -r -v $CI_REPO_NAME build_prefabs
|
||||||
|
- cp -r -v $CI_REPO_NAME build_gui_docker
|
||||||
|
- cp -r -v $CI_REPO_NAME build_server_docker
|
||||||
|
- cp -r -v $CI_REPO_NAME build_sphinx_docs
|
||||||
|
- cd $CI_REPO_NAME
|
||||||
|
- name: build-prefabs
|
||||||
|
image: codeberg.org/3ra/ballistica-dev:latest
|
||||||
|
commands:
|
||||||
|
- cd ../build_prefabs
|
||||||
- make prefab-linux-arm64-gui-debug-build
|
- make prefab-linux-arm64-gui-debug-build
|
||||||
- make prefab-linux-x86-64-gui-debug-build
|
- make prefab-linux-x86-64-gui-debug-build
|
||||||
- make prefab-mac-arm64-gui-debug-build
|
- make prefab-mac-arm64-gui-debug-build
|
||||||
@ -15,7 +26,6 @@ steps:
|
|||||||
- make prefab-linux-x86-64-server-debug-build
|
- make prefab-linux-x86-64-server-debug-build
|
||||||
- make prefab-mac-arm64-server-debug-build
|
- make prefab-mac-arm64-server-debug-build
|
||||||
- make prefab-windows-x86-server-debug-build
|
- make prefab-windows-x86-server-debug-build
|
||||||
- make docs-sphinx
|
|
||||||
- mv -v build/prefab/full/linux_arm64_gui/debug build/prefab/full/linux_arm64_gui/ballisticakit_linux_arm64
|
- mv -v build/prefab/full/linux_arm64_gui/debug build/prefab/full/linux_arm64_gui/ballisticakit_linux_arm64
|
||||||
- tar cvzfC ballisticakit_linux_arm64.tar.gz build/prefab/full/linux_arm64_gui ballisticakit_linux_arm64
|
- tar cvzfC ballisticakit_linux_arm64.tar.gz build/prefab/full/linux_arm64_gui ballisticakit_linux_arm64
|
||||||
- mv -v build/prefab/full/linux_x86_64_gui/debug build/prefab/full/linux_x86_64_gui/ballisticakit_linux_x86_64
|
- mv -v build/prefab/full/linux_x86_64_gui/debug build/prefab/full/linux_x86_64_gui/ballisticakit_linux_x86_64
|
||||||
@ -36,19 +46,19 @@ steps:
|
|||||||
- cd build/prefab/full/windows_x86_server
|
- cd build/prefab/full/windows_x86_server
|
||||||
- zip -rv ../../../../ballisticakit_windows_server.zip ballisticakit_windows_server
|
- zip -rv ../../../../ballisticakit_windows_server.zip ballisticakit_windows_server
|
||||||
- cd ../../../..
|
- cd ../../../..
|
||||||
- mv -v build/sphinx build/ballisticakit_sphinx_docs
|
depends_on: [parallel-prepare]
|
||||||
- tar -cvfC ballisticakit_sphinx_docs.tar build/ ballisticakit_sphinx_docs
|
|
||||||
- name: build-gui-docker
|
- name: build-gui-docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dry-run: true
|
dry-run: true
|
||||||
dockerfile: config/docker/Dockerfile
|
dockerfile: ../build_gui_docker/config/docker/Dockerfile
|
||||||
build_args:
|
build_args:
|
||||||
- cmake_build_type=Debug
|
- cmake_build_type=Debug
|
||||||
- headless_build=1
|
- headless_build=1
|
||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
output: type=docker,dest=ballisticakit_docker.tar
|
output: type=docker,dest=ballisticakit_docker.tar
|
||||||
|
depends_on: [parallel-prepare]
|
||||||
- name: build-server-docker
|
- name: build-server-docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
@ -60,22 +70,31 @@ steps:
|
|||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
output: type=docker,dest=ballisticakit_server_docker.tar
|
output: type=docker,dest=ballisticakit_server_docker.tar
|
||||||
|
depends_on: [parallel-prepare]
|
||||||
|
- name: build-sphinx-docs
|
||||||
|
image: codeberg.org/3ra/ballistica-dev:latest
|
||||||
|
commands:
|
||||||
|
- make docs-sphinx
|
||||||
|
- mv -v build/sphinx build/ballisticakit_sphinx_docs
|
||||||
|
- tar -cvfC ballisticakit_sphinx_docs.tar build/ ballisticakit_sphinx_docs
|
||||||
|
depends_on: [parallel-prepare]
|
||||||
- name: publish
|
- name: publish
|
||||||
image: woodpeckerci/plugin-release
|
image: woodpeckerci/plugin-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: ACCESS_TOKEN
|
from_secret: ACCESS_TOKEN
|
||||||
files:
|
files:
|
||||||
- 'ballisticakit_linux_arm64.tar.gz'
|
- '../build_prefabs/ballisticakit_linux_arm64.tar.gz'
|
||||||
- 'ballisticakit_linux_x86_64.tar.gz'
|
- '../build_prefabs/ballisticakit_linux_x86_64.tar.gz'
|
||||||
- 'ballisticakit_mac.tar.gz'
|
- '../build_prefabs/ballisticakit_mac.tar.gz'
|
||||||
- 'ballisticakit_windows.zip'
|
- '../build_prefabs/ballisticakit_windows.zip'
|
||||||
- 'ballisticakit_linux_arm64_server.tar.gz'
|
- '../build_prefabs/ballisticakit_linux_arm64_server.tar.gz'
|
||||||
- 'ballisticakit_linux_x86_64_server.tar.gz'
|
- '../build_prefabs/ballisticakit_linux_x86_64_server.tar.gz'
|
||||||
- 'ballisticakit_mac_server.tar.gz'
|
- '../build_prefabs/ballisticakit_mac_server.tar.gz'
|
||||||
- 'ballisticakit_windows_server.zip'
|
- '../build_prefabs/ballisticakit_windows_server.zip'
|
||||||
- 'ballisticakit_docker.tar'
|
- '../build_gui_docker/ballisticakit_docker.tar'
|
||||||
- 'ballisticakit_server_docker.tar'
|
- '../build_server_docker/ballisticakit_server_docker.tar'
|
||||||
- 'ballisticakit_sphinx_docs.tar'
|
- '../build_sphinx_docs/ballisticakit_sphinx_docs.tar'
|
||||||
note: 'These are debug prefab builds; use them for testing purposes only. Check out https://ballistica.net/downloads for official/blessed release builds'
|
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}
|
title: ${CI_COMMIT_TAG}
|
||||||
|
depends_on: [build-prefabs, build-gui-docker, build-server-docker, build-sphinx-docs]
|
||||||
|
|||||||
@ -1,14 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
- event: pull_request
|
|
||||||
- event: cron
|
|
||||||
cron: ci
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build_and_test
|
|
||||||
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
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
- event: pull_request
|
|
||||||
- event: cron
|
|
||||||
cron: ci
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: check
|
|
||||||
image: codeberg.org/3ra/ballistica-dev:latest
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- make env
|
|
||||||
- BA_PCOMMANDBATCH_BUILD_REQUIRE=1 make check
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
- event: pull_request
|
|
||||||
- event: cron
|
|
||||||
cron: ci
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
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)"
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
- event: pull_request
|
|
||||||
- event: cron
|
|
||||||
cron: ci
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
image: codeberg.org/3ra/ballistica-dev:latest
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- make env
|
|
||||||
- make spinoff-test-core
|
|
||||||
- make spinoff-test-base
|
|
||||||
@ -201,10 +201,6 @@ ctx.filter_file_names = {
|
|||||||
'ballistica_dev_dockerfile',
|
'ballistica_dev_dockerfile',
|
||||||
'ballistica_dev_image.yaml',
|
'ballistica_dev_image.yaml',
|
||||||
'ci.yaml',
|
'ci.yaml',
|
||||||
'ci_check_linux.yaml',
|
|
||||||
'ci_build_and_test_linux.yaml',
|
|
||||||
'ci_spinoff_test_linux.yaml',
|
|
||||||
'ci_feature_set_copy_test_linux.yaml',
|
|
||||||
'ci_build_and_test_windows.yaml',
|
'ci_build_and_test_windows.yaml',
|
||||||
'deploy_docs.yaml',
|
'deploy_docs.yaml',
|
||||||
'release.yaml',
|
'release.yaml',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user