Skip to content

Commit 584cf93

Browse files
Create build_server.yml
1 parent 82128b5 commit 584cf93

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build_server.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Ballistica Server (Release)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
16+
17+
- name: Set up deadsnakes PPA for Python 3.13
18+
run: |
19+
sudo apt update
20+
sudo apt install -y software-properties-common
21+
sudo add-apt-repository ppa:deadsnakes/ppa -y
22+
sudo apt update
23+
sudo apt install -y python3.13 python3.13-dev python3.13-venv python3-pip
24+
25+
- name: Install build dependencies
26+
run: |
27+
sudo apt install -y libopenal-dev libsdl2-dev libvorbis-dev cmake clang-format rsync build-essential ninja-build git
28+
29+
- name: Verify Python version
30+
run: |
31+
python3.13 --version
32+
33+
- name: Set Python 3.13 as default for python3
34+
run: |
35+
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1
36+
python3 --version
37+
38+
- name: Build Ballistica server (Release)
39+
run: |
40+
CMAKE_BUILD_TYPE=Release make cmake-server
41+
42+
- name: Upload ba_server artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: ba_server
46+
path: build/ba_server

0 commit comments

Comments
 (0)