|
1 | | -name: CI |
2 | | - |
3 | | -on: [push, pull_request] |
4 | | - |
5 | | -jobs: |
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 | | - linux-build: |
21 | | - name: Linux build |
22 | | - runs-on: ubuntu-20.04 |
23 | | - steps: |
24 | | - - name: Git checkout |
25 | | - uses: actions/checkout@v2 |
26 | | - with: |
27 | | - submodules: true |
28 | | - |
29 | | - - name: Install dependencies |
30 | | - run: | |
31 | | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test |
32 | | - sudo apt-get update |
33 | | - sudo apt-get install -y gcc-11 g++-11 |
34 | | - sudo apt-get remove -y libtbb-dev |
35 | | -
|
36 | | - - name: Build Linux 64 bit |
37 | | - run: mkdir build-linux64 && cd build-linux64 && cmake .. && cmake --build . --config Release --parallel 2 |
38 | | - env: |
39 | | - CC: gcc-11 |
40 | | - CXX: g++-11 |
41 | | - |
42 | | - - name: Upload Linux 64 bit |
43 | | - uses: actions/upload-artifact@v2 |
44 | | - with: |
45 | | - name: Linux x64 |
46 | | - path: release |
47 | | - if-no-files-found: error |
48 | | - |
49 | | - windows-build: |
50 | | - name: Windows build |
51 | | - runs-on: windows-2019 |
52 | | - steps: |
53 | | - - name: Git checkout |
54 | | - uses: actions/checkout@v2 |
55 | | - with: |
56 | | - submodules: true |
57 | | - |
58 | | - - name: Build Windows 64 bit |
59 | | - run: mkdir build-win64 && cd build-win64 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release |
60 | | - |
61 | | - - name: Upload Windows 64 bit |
62 | | - uses: actions/upload-artifact@v2 |
63 | | - with: |
64 | | - name: Windows x64 |
65 | | - path: Release |
66 | | - if-no-files-found: error |
67 | | - |
68 | | - windows-test-ace3: |
69 | | - name: Windows test ACE3 |
70 | | - runs-on: windows-2019 |
71 | | - needs: |
72 | | - - test-configs |
73 | | - - windows-build |
74 | | - steps: |
75 | | - - name: Git checkout ACE3 |
76 | | - uses: actions/checkout@v2 |
77 | | - with: |
78 | | - repository: acemod/ACE3 |
79 | | - path: z/ace |
80 | | - |
81 | | - - name: Git checkout CBA A3 |
82 | | - uses: actions/checkout@v2 |
83 | | - with: |
84 | | - repository: CBATeam/CBA_A3 |
85 | | - path: x/cba |
86 | | - |
87 | | - - name: Download test configs |
88 | | - uses: actions/download-artifact@v2 |
89 | | - with: |
90 | | - name: test configs |
91 | | - |
92 | | - - name: Download ArmaScriptCompiler artifact |
93 | | - uses: actions/download-artifact@v2 |
94 | | - with: |
95 | | - name: Windows x64 |
96 | | - |
97 | | - - name: Setup build folder |
98 | | - run: | |
99 | | - xcopy z\ace\include\a3 a3 /s /e /h /i |
100 | | - copy ace3.json sqfc.json |
101 | | -
|
102 | | - - name: Compile ACE3 |
103 | | - run: | |
104 | | - subst P: . |
105 | | - Release\ArmaScriptCompiler.exe |
106 | | -
|
107 | | - windows-test-cba-a3: |
108 | | - name: Windows test CBA A3 |
109 | | - runs-on: windows-2019 |
110 | | - needs: |
111 | | - - test-configs |
112 | | - - windows-build |
113 | | - steps: |
114 | | - - name: Git checkout CBA A3 |
115 | | - uses: actions/checkout@v2 |
116 | | - with: |
117 | | - repository: CBATeam/CBA_A3 |
118 | | - path: x/cba |
119 | | - |
120 | | - - name: Download test configs |
121 | | - uses: actions/download-artifact@v2 |
122 | | - with: |
123 | | - name: test configs |
124 | | - |
125 | | - - name: Download ArmaScriptCompiler artifact |
126 | | - uses: actions/download-artifact@v2 |
127 | | - with: |
128 | | - name: Windows x64 |
129 | | - |
130 | | - - name: Setup build folder |
131 | | - run: | |
132 | | - xcopy x\cba\include\a3 a3 /s /e /h /i |
133 | | - copy cba_a3.json sqfc.json |
134 | | -
|
135 | | - - name: Compile CBA A3 |
136 | | - run: | |
137 | | - subst P: . |
138 | | - Release\ArmaScriptCompiler.exe |
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 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 | +# linux-build: |
| 21 | +# name: Linux build |
| 22 | +# runs-on: ubuntu-22.04 |
| 23 | +# steps: |
| 24 | +# - name: Git checkout |
| 25 | +# uses: actions/checkout@v2 |
| 26 | +# with: |
| 27 | +# submodules: true |
| 28 | +# |
| 29 | +# - name: Install dependencies |
| 30 | +# run: | |
| 31 | +# sudo add-apt-repository ppa:ubuntu-toolchain-r/test |
| 32 | +# sudo apt-get update |
| 33 | +# sudo apt-get install -y gcc-13 g++-13 |
| 34 | +# sudo apt-get remove -y libtbb-dev |
| 35 | +# |
| 36 | +# - name: Build Linux 64 bit |
| 37 | +# run: mkdir build-linux64 && cd build-linux64 && cmake .. && cmake --build . --config Release --parallel 2 |
| 38 | +# env: |
| 39 | +# CC: gcc-13 |
| 40 | +# CXX: g++-13 |
| 41 | +# |
| 42 | +# - name: Upload Linux 64 bit |
| 43 | +# uses: actions/upload-artifact@v2 |
| 44 | +# with: |
| 45 | +# name: Linux x64 |
| 46 | +# path: release |
| 47 | +# if-no-files-found: error |
| 48 | + |
| 49 | + windows-build: |
| 50 | + name: Windows build |
| 51 | + runs-on: windows-2019 |
| 52 | + steps: |
| 53 | + - name: Git checkout |
| 54 | + uses: actions/checkout@v2 |
| 55 | + with: |
| 56 | + submodules: true |
| 57 | + |
| 58 | + - name: Build Windows 64 bit |
| 59 | + run: mkdir build-win64 && cd build-win64 && cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 16 2019" -A x64 .. && cmake --build . --config Release |
| 60 | + |
| 61 | + - name: Upload Windows 64 bit |
| 62 | + uses: actions/upload-artifact@v2 |
| 63 | + with: |
| 64 | + name: Windows x64 |
| 65 | + path: Release |
| 66 | + if-no-files-found: error |
| 67 | + |
| 68 | + windows-test-ace3: |
| 69 | + name: Windows test ACE3 |
| 70 | + runs-on: windows-2019 |
| 71 | + needs: |
| 72 | + - test-configs |
| 73 | + - windows-build |
| 74 | + steps: |
| 75 | + - name: Git checkout ACE3 |
| 76 | + uses: actions/checkout@v2 |
| 77 | + with: |
| 78 | + repository: acemod/ACE3 |
| 79 | + path: z/ace |
| 80 | + |
| 81 | + - name: Git checkout CBA A3 |
| 82 | + uses: actions/checkout@v2 |
| 83 | + with: |
| 84 | + repository: CBATeam/CBA_A3 |
| 85 | + path: x/cba |
| 86 | + |
| 87 | + - name: Download test configs |
| 88 | + uses: actions/download-artifact@v2 |
| 89 | + with: |
| 90 | + name: test configs |
| 91 | + |
| 92 | + - name: Download ArmaScriptCompiler artifact |
| 93 | + uses: actions/download-artifact@v2 |
| 94 | + with: |
| 95 | + name: Windows x64 |
| 96 | + |
| 97 | + - name: Setup build folder |
| 98 | + run: | |
| 99 | + xcopy z\ace\include\a3 a3 /s /e /h /i |
| 100 | + copy ace3.json sqfc.json |
| 101 | +
|
| 102 | + - name: Compile ACE3 |
| 103 | + run: | |
| 104 | + subst P: . |
| 105 | + Release\ArmaScriptCompiler.exe |
| 106 | +
|
| 107 | + windows-test-cba-a3: |
| 108 | + name: Windows test CBA A3 |
| 109 | + runs-on: windows-2019 |
| 110 | + needs: |
| 111 | + - test-configs |
| 112 | + - windows-build |
| 113 | + steps: |
| 114 | + - name: Git checkout CBA A3 |
| 115 | + uses: actions/checkout@v2 |
| 116 | + with: |
| 117 | + repository: CBATeam/CBA_A3 |
| 118 | + path: x/cba |
| 119 | + |
| 120 | + - name: Download test configs |
| 121 | + uses: actions/download-artifact@v2 |
| 122 | + with: |
| 123 | + name: test configs |
| 124 | + |
| 125 | + - name: Download ArmaScriptCompiler artifact |
| 126 | + uses: actions/download-artifact@v2 |
| 127 | + with: |
| 128 | + name: Windows x64 |
| 129 | + |
| 130 | + - name: Setup build folder |
| 131 | + run: | |
| 132 | + xcopy x\cba\include\a3 a3 /s /e /h /i |
| 133 | + copy cba_a3.json sqfc.json |
| 134 | +
|
| 135 | + - name: Compile CBA A3 |
| 136 | + run: | |
| 137 | + subst P: . |
| 138 | + Release\ArmaScriptCompiler.exe |
0 commit comments