@@ -3,7 +3,22 @@ name: CI
33on : [push, pull_request]
44
55jobs :
6- windows :
6+ test-configs :
7+ name : Archive test configs
8+ runs-on : ubuntu-20.04
9+ steps :
10+ - name : Git checkout
11+ uses : actions/checkout@v2
12+
13+ - name : Archive test configs
14+ uses : actions/upload-artifact@v2
15+ with :
16+ name : test configs
17+ path : test/*.json
18+ if-no-files-found : error
19+
20+ windows-build :
21+ name : Windows build
722 runs-on : windows-2019
823 steps :
924 - name : Git checkout
1934 with :
2035 name : Windows x64
2136 path : Release
37+ if-no-files-found : error
38+
39+ windows-test-ace3 :
40+ name : Windows test ACE3
41+ runs-on : windows-2019
42+ needs :
43+ - test-configs
44+ - windows-build
45+ steps :
46+ - name : Git checkout ACE3
47+ uses : actions/checkout@v2
48+ with :
49+ repository : acemod/ACE3
50+ path : z/ace
51+
52+ - name : Git checkout CBA A3
53+ uses : actions/checkout@v2
54+ with :
55+ repository : CBATeam/CBA_A3
56+ path : x/cba
57+
58+ - name : Download test configs
59+ uses : actions/download-artifact@v2
60+ with :
61+ name : test configs
62+
63+ - name : Download ArmaScriptCompiler artifact
64+ uses : actions/download-artifact@v2
65+ with :
66+ name : Windows x64
67+
68+ - name : Setup build folder
69+ run : |
70+ xcopy z\ace\include\a3 a3 /s /e /h /i
71+ copy ace3.json sqfc.json
72+
73+ - name : Compile ACE3
74+ run : |
75+ subst P: .
76+ Release\ArmaScriptCompiler.exe
77+
78+ windows-test-cba-a3 :
79+ name : Windows test CBA A3
80+ runs-on : windows-2019
81+ needs :
82+ - test-configs
83+ - windows-build
84+ steps :
85+ - name : Git checkout CBA A3
86+ uses : actions/checkout@v2
87+ with :
88+ repository : CBATeam/CBA_A3
89+ path : x/cba
90+
91+ - name : Download test configs
92+ uses : actions/download-artifact@v2
93+ with :
94+ name : test configs
95+
96+ - name : Download ArmaScriptCompiler artifact
97+ uses : actions/download-artifact@v2
98+ with :
99+ name : Windows x64
100+
101+ - name : Setup build folder
102+ run : |
103+ xcopy x\cba\include\a3 a3 /s /e /h /i
104+ copy cba_a3.json sqfc.json
105+
106+ - name : Compile CBA A3
107+ run : |
108+ subst P: .
109+ Release\ArmaScriptCompiler.exe
0 commit comments