From 297ba129e97a4f2d847fb8ab9ed8daa9724b2940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Tue, 13 Jul 2021 19:08:08 +0200 Subject: [PATCH] Test binary with ACE3 and CBA A3 mods --- .github/workflows/ci.yml | 90 +++++++++++++++++++++++++++++++++++++++- test/ace3.json | 12 ++++++ test/cba_a3.json | 21 ++++++++++ 3 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 test/ace3.json create mode 100644 test/cba_a3.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e8b2c1..5818814 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/test/ace3.json b/test/ace3.json new file mode 100644 index 0000000..dd60b9b --- /dev/null +++ b/test/ace3.json @@ -0,0 +1,12 @@ +{ + "inputDirs": [ + "P:/z/ace/addons/" + ], + "includePaths": [ + "P:/" + ], + "excludeList": [ + ], + "outputDir": "P:/", + "workerThreads": 6 +} diff --git a/test/cba_a3.json b/test/cba_a3.json new file mode 100644 index 0000000..07d8210 --- /dev/null +++ b/test/cba_a3.json @@ -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 +}