From 8a8f38f5bca403ad7c5f8db7754e0874ede5548a Mon Sep 17 00:00:00 2001 From: Era <100019405+EraOSBeta@users.noreply.github.com> Date: Tue, 5 Dec 2023 09:37:10 +0330 Subject: [PATCH 1/3] Added CD --- .github/workflows/cd.yml | 178 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 00000000..ebeea7ef --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,178 @@ +name: CD + +on: + # Run on pushes and pull-requests + push: + pull_request: + +jobs: + make_linux_x86_64_gui_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-gui-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: linux_x86_64_gui_(debug) + path: build/prefab/full/linux_x86_64_gui + make_linux_x86_64_server_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-server-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: linux_x86_64_server_(debug) + path: build/prefab/full/linux_x86_64_server + make_linux_arm64_gui_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-linux-arm64-gui-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: linux_arm64_gui_(debug) + path: build/prefab/full/linux_arm64_gui + make_linux_arm64_server_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-linux-arm64-server-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: linux_arm64_server_(debug) + path: build/prefab/full/linux_arm64_server + make_mac_x86_64_gui_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-mac-x86-64-gui-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: mac_x86_64_gui_(debug) + path: build/prefab/full/mac_x86_64_gui + make_mac_x86_64_server_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-mac-x86-64-server-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: mac_x86_64_server_(debug) + path: build/prefab/full/mac_x86_64_server + make_mac_arm64_gui_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-mac-arm64-gui-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: mac_arm64_gui_(debug) + path: build/prefab/full/mac_arm64_gui + make_mac_arm64_server_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-mac-arm64-server-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: mac_arm64_server_(debug) + path: build/prefab/full/mac_arm64_server + make_windows_x86_gui_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-windows-x86-gui-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: windows_x86_gui_(debug) + path: build/prefab/full/windows_x86_gui + make_windows_x86_server_debug_build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install pip requirements + run: tools/pcommand install_pip_reqs + - name: Make the build + run: make prefab-windows-x86-server-debug-build + - name: Upload the build + uses: actions/upload-artifact@v3 + with: + name: windows_x86_server_(debug) + path: build/prefab/full/windows_x86_server From a54614e3f97a2deefbbb47e131f0a9eb77b8add0 Mon Sep 17 00:00:00 2001 From: Era <100019405+EraOSBeta@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:22:59 +0330 Subject: [PATCH 2/3] CI will kill me one day --- config/spinoffconfig.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config/spinoffconfig.py b/config/spinoffconfig.py index 21b06551..5ed00b2e 100644 --- a/config/spinoffconfig.py +++ b/config/spinoffconfig.py @@ -195,6 +195,7 @@ ctx.filter_file_names = { '.projectile', '.editorconfig', 'ci.yml', + 'cd.yml', 'LICENSE', 'cloudtool', 'bacloud', From 5ef968f25bb63c159b16b34eec009da0fcb175c5 Mon Sep 17 00:00:00 2001 From: Era <100019405+EraOSBeta@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:25:18 +0330 Subject: [PATCH 3/3] Update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4550a942..20fddc2a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ height="50" alt="logo"> ***-ica***: collection of things relating to a specific theme. -[![](https://github.com/efroemling/ballistica/actions/workflows/ci.yml/badge.svg)](https://github.com/efroemling/ballistica/actions/workflows/ci.yml) +[![](https://github.com/efroemling/ballistica/actions/workflows/ci.yml/badge.svg)](https://github.com/efroemling/ballistica/actions/workflows/ci.yml) [![](https://github.com/efroemling/ballistica/actions/workflows/cd.yml/badge.svg)](https://github.com/efroemling/ballistica/actions/workflows/cd.yml) The Ballistica project is the foundation for [BombSquad](https://www.froemling.net/apps/bombsquad) and potentially other @@ -52,7 +52,7 @@ want to keep that spirit alive as the Ballistica project moves forward. Whether this means making it easier to share mods, organize tournaments, join up with friends, teach each other some Python, or whatever else. Life is short; let's play some games. Or make them. Maybe both. - + ### Frequently Asked Questions * **Q: What's with this name? Is it BombSquad or Ballistica?** @@ -86,4 +86,4 @@ Playstation / My Toaster??** for more details or the [Ballistica Downloads](https://ballistica.net/downloads) page for early test builds on some platforms. - +