-
Notifications
You must be signed in to change notification settings - Fork 12
138 lines (117 loc) · 3.34 KB
/
ci.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: CI
on: [push, pull_request]
jobs:
test-configs:
name: Archive test configs
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Archive test configs
uses: actions/upload-artifact@v2
with:
name: test configs
path: test/*.json
if-no-files-found: error
linux-build:
name: Linux build
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-11 g++-11
sudo apt-get remove -y libtbb-dev
- name: Build Linux 64 bit
run: mkdir build-linux64 && cd build-linux64 && cmake .. && cmake --build . --config Release --parallel 2
env:
CC: gcc-11
CXX: g++-11
- name: Upload Linux 64 bit
uses: actions/upload-artifact@v2
with:
name: Linux x64
path: release
if-no-files-found: error
windows-build:
name: Windows build
runs-on: windows-2019
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Build Windows 64 bit
run: mkdir build-win64 && cd build-win64 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release
- name: Upload Windows 64 bit
uses: actions/upload-artifact@v2
with:
name: Windows x64
path: Release
if-no-files-found: error
windows-test-ace3:
name: Windows test ACE3
runs-on: windows-2019
needs:
- test-configs
- windows-build
steps:
- name: Git checkout ACE3
uses: actions/checkout@v2
with:
repository: acemod/ACE3
path: z/ace
- name: Git checkout CBA A3
uses: actions/checkout@v2
with:
repository: CBATeam/CBA_A3
path: x/cba
- name: Download test configs
uses: actions/download-artifact@v2
with:
name: test configs
- name: Download ArmaScriptCompiler artifact
uses: actions/download-artifact@v2
with:
name: Windows x64
- name: Setup build folder
run: |
xcopy z\ace\include\a3 a3 /s /e /h /i
copy ace3.json sqfc.json
- name: Compile ACE3
run: |
subst P: .
Release\ArmaScriptCompiler.exe
windows-test-cba-a3:
name: Windows test CBA A3
runs-on: windows-2019
needs:
- test-configs
- windows-build
steps:
- name: Git checkout CBA A3
uses: actions/checkout@v2
with:
repository: CBATeam/CBA_A3
path: x/cba
- name: Download test configs
uses: actions/download-artifact@v2
with:
name: test configs
- name: Download ArmaScriptCompiler artifact
uses: actions/download-artifact@v2
with:
name: Windows x64
- name: Setup build folder
run: |
xcopy x\cba\include\a3 a3 /s /e /h /i
copy cba_a3.json sqfc.json
- name: Compile CBA A3
run: |
subst P: .
Release\ArmaScriptCompiler.exe