forked from efroemling/ballistica
-
Notifications
You must be signed in to change notification settings - Fork 0
154 lines (144 loc) · 4.51 KB
/
cd.yml
File metadata and controls
154 lines (144 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: CD
on:
# Run on pushes and pull-requests
push:
pull_request:
jobs:
make_linux_gui_debug_build:
name: Linux (${{ matrix.arch }}) GUI (debug)
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x86_64
- os: ubuntu-24.04-arm
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup build env
uses: ./.github/actions/bombsquad_build_env
with:
using-cmake: true
- name: Make the build
run: |
make cmake-build
mv build/cmake/debug/ballisticakit build/cmake/debug/staged
- name: Upload the build
uses: actions/upload-artifact@v4
with:
name: linux_${{ matrix.arch }}_gui_(debug)
path: build/cmake/debug/staged
make_linux_server_debug_build:
name: Linux (${{ matrix.arch }}) Server (debug)
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x86_64
- os: ubuntu-24.04-arm
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup build env
uses: ./.github/actions/bombsquad_build_env
with:
using-cmake: true
- name: Make the build
run: make cmake-server-build
- name: Upload the build
uses: actions/upload-artifact@v4
with:
name: linux_${{ matrix.arch }}_server_(debug)
path: build/cmake/server-debug/staged
# Limiting mac prefab builds to arm only for now.
# Leaving this here in case we re-enable them though.
# make_mac_x86_64_gui_debug_build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v6
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.13'
# - name: Setup project environment
# run: make env
# - name: Make the build
# run: make prefab-mac-x86-64-gui-debug-build
# - name: Upload the build
# uses: actions/upload-artifact@v4
# 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@v6
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.13'
# - name: Setup project environment
# run: make env
# - name: Make the build
# run: make prefab-mac-x86-64-server-debug-build
# - name: Upload the build
# uses: actions/upload-artifact@v4
# 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@v6
- name: Setup build env
uses: ./.github/actions/bombsquad_build_env
- name: Make the build
run: make prefab-mac-arm64-gui-debug-build
- name: Upload the build
uses: actions/upload-artifact@v4
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@v6
- name: Setup build env
uses: ./.github/actions/bombsquad_build_env
- name: Make the build
run: make prefab-mac-arm64-server-debug-build
- name: Upload the build
uses: actions/upload-artifact@v4
with:
name: mac_arm64_server_(debug)
path: build/prefab/full/mac_arm64_server
make_windows_x86_64_gui_debug_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup build env
uses: ./.github/actions/bombsquad_build_env
- name: Make the build
run: make prefab-windows-x86-64-gui-debug-build
- name: Upload the build
uses: actions/upload-artifact@v4
with:
name: windows_x86_64_gui_(debug)
path: build/prefab/full/windows_x86_64_gui
make_windows_x86_64_server_debug_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup build env
uses: ./.github/actions/bombsquad_build_env
- name: Make the build
run: make prefab-windows-x86-64-server-debug-build
- name: Upload the build
uses: actions/upload-artifact@v4
with:
name: windows_x86_64_server_(debug)
path: build/prefab/full/windows_x86_64_server