Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 89 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@ name: CI
on: [push, pull_request]

jobs:
windows:
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

windows-build:
name: Windows build
runs-on: windows-2019
steps:
- name: Git checkout
Expand All @@ -19,3 +34,76 @@ jobs:
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
12 changes: 12 additions & 0 deletions test/ace3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"inputDirs": [
"P:/z/ace/addons/"
],
"includePaths": [
"P:/"
],
"excludeList": [
],
"outputDir": "P:/",
"workerThreads": 6
}
21 changes: 21 additions & 0 deletions test/cba_a3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"inputDirs": [
"P:/x/cba/addons/"
],
"includePaths": [
"P:/"
],
"excludeList": [
"\\initsettings.sqf",
"\\initkeybinds.sqf",
"\\xeh_prep.sqf",
"\\backwards_comp.sqf",
"settings\\gui_createcategory.sqf",
"diagnostic\\fnc_initextendeddebugconsole.sqf",
"xeh\\fnc_initdisplay.sqf",
"xeh\\fnc_startloadingscreen.sqf",
"xeh\\fnc_endloadingscreen.sqf"
],
"outputDir": "P:/",
"workerThreads": 6
}