-
Notifications
You must be signed in to change notification settings - Fork 123
115 lines (93 loc) · 2.85 KB
/
build-targets.yml
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
name: build targets
on: [pull_request]
jobs:
windows-build:
if: github.repository == 'QW-Group/ezquake-source'
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
target: [windows-multi-x64]
include:
- target: windows-multi-x64
config: rls-all
platform: x64
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: true
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build txt2c
run: msbuild misc\vstudio\txt2c\txt2c.vcxproj -t:rebuild -property:Configuration=Release
- name: Make dir
run: mkdir .vs
- name: Copy txt2c
run: cp misc\vstudio\txt2c\.vs\txt2c.exe .vs\
- name: Build ezquake
run: msbuild ezQuake.vcxproj -t:rebuild -property:Configuration=${{ matrix.config }} -property:Platform=${{ matrix.platform }}
- name: Archive client
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: .vs\${{ matrix.platform }}\${{ matrix.config }}\Output\ezQuake.exe
macos-arm-build:
if: github.repository == 'QW-Group/ezquake-source'
runs-on: macos-12
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: .github/workflows/scripts/homebrew.sh install-arm64
- name: Build
run: .github/workflows/scripts/homebrew.sh build-arm64
- name: Create Bundle
run: .github/workflows/scripts/homebrew.sh create-bundle
- uses: actions/upload-artifact@v3
with:
name: macos-arm64
path: artifact
macos-intel-build:
if: github.repository == 'QW-Group/ezquake-source'
runs-on: macos-12
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: .github/workflows/scripts/homebrew.sh install-intel
- name: Build
run: .github/workflows/scripts/homebrew.sh build-intel
- name: Create Bundle
run: .github/workflows/scripts/homebrew.sh create-bundle
- uses: actions/upload-artifact@v3
with:
name: macos-intel
path: artifact
linux-build:
if: github.repository == 'QW-Group/ezquake-source'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [linux-x86_64]
include:
- target: linux-x86_64
platform: x86_64
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: sudo apt-get install libfuse2
- name: Build
run: ./misc/appimage/appimage-manual_creation.sh
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}-AppImage
path: ezQuake-${{ matrix.platform }}.AppImage