Skip to content

Commit

Permalink
build ags3 and ags4 variants in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Feb 18, 2024
1 parent 2909bb0 commit 7f620d2
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 35 deletions.
115 changes: 87 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,79 @@ jobs:
curl -Lo atbx.exe https://github.com/ericoporto/agstoolbox/releases/download/0.4.9/atbx.exe
echo "${{github.workspace}}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: install ags
- name: Install AGS 3
run: |
atbx install editor -q auto-test/
atbx install editor -q ags3/auto-test/
- name: build game
- name: Install AGS 4
run: |
atbx build auto-test/
atbx install editor -q ags4/auto-test/
- name: Build AGS 3 game
run: |
atbx build ags3/auto-test/
- name: Build AGS 4 game
run: |
atbx build ags4/auto-test/
- name: run game
- name: Run AGS 3 game
shell: cmd
run: |
cd auto-test\\Compiled\\Windows
.\\auto-test --no-message-box --log-stdout=script:info,main:info --user-data-dir .
cd ags3\\auto-test\\Compiled\\Windows
.\\ags3-auto-test --no-message-box --log-stdout=script:info,main:info --user-data-dir .
- name: upload artifacts
- name: Run AGS 4 game
shell: cmd
run: |
cd ags4\\auto-test\\Compiled\\Windows
.\\ags4-auto-test --no-message-box --log-stdout=script:info,main:info --user-data-dir .
- name: Upload Artifacts AGS 3
uses: actions/upload-artifact@v4
with:
name: binaries
name: ags3-binaries
path: |
auto-test/Compiled/*/*
ags3/auto-test/Compiled/*/*
- name: upload test log
- name: Upload Artifacts AGS 4
uses: actions/upload-artifact@v4
with:
name: test-log-windows
path: auto-test/Compiled/Windows/agstest.tap
name: ags4-binaries
path: |
ags4/auto-test/Compiled/*/*
- name: Upload AGS 3 test log
uses: actions/upload-artifact@v4
with:
name: ags3-test-log-windows
path: ags3/auto-test/Compiled/Windows/agstest.tap

- name: Upload AGS 4 test log
uses: actions/upload-artifact@v4
with:
name: ags4-test-log-windows
path: ags4/auto-test/Compiled/Windows/agstest.tap

- name: Test Summary
- name: Test Summary AGS 3
uses: nikeee/tap-summary@dist
with:
path: "ags3/auto-test/Compiled/Windows/agstest.tap"
if: always()

- name: Test Summary AGS 4
uses: nikeee/tap-summary@dist
with:
path: "auto-test/Compiled/Windows/agstest.tap"
path: "ags4/auto-test/Compiled/Windows/agstest.tap"
if: always()

- name: Create release and upload assets
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: auto-test/Compiled/Data/auto-test.ags
artifacts: |
ags3/auto-test/Compiled/Data/ags3-auto-test.ags
ags4/auto-test/Compiled/Data/ags4-auto-test.ags
allowUpdates: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -60,26 +95,50 @@ jobs:
needs: build-and-test-windows
runs-on: ubuntu-latest
steps:
- name: Download artifacts
- name: Download AGS 3 artifacts
uses: actions/download-artifact@v4
with:
name: ags3-binaries
path: ags3-binaries

- name: Run AGS 3 Linux Game
run: |
cd ags3-binaries/Linux
chmod +x ags3-auto-test data/ags*
./ags3-auto-test --no-message-box --log-stdout=script:info,main:info --user-data-dir .
- name: Upload Linux AGS 3 Test Log
uses: actions/upload-artifact@v4
with:
name: ags3-test-log-linux
path: ags3-binaries/Linux/data/agstest.tap

- name: Linux Test Summary AGS 3
uses: nikeee/tap-summary@dist
with:
path: "ags3-binaries/Linux/data/agstest.tap"
if: always()

- name: Download AGS 4 artifacts
uses: actions/download-artifact@v4
with:
name: binaries
path: binaries
name: ags4-binaries
path: ags4-binaries

- name: run linux game
- name: Run AGS 4 Linux Game
run: |
cd binaries/Linux
chmod +x auto-test data/ags*
./auto-test --no-message-box --log-stdout=script:info,main:info --user-data-dir .
cd ags4-binaries/Linux
chmod +x ags4-auto-test data/ags*
./ags4-auto-test --no-message-box --log-stdout=script:info,main:info --user-data-dir .
- name: upload test log
- name: Upload Linux AGS 4 Test Log
uses: actions/upload-artifact@v4
with:
name: test-log-linux
path: binaries/Linux/data/agstest.tap
name: ags4-test-log-linux
path: ags4-binaries/Linux/data/agstest.tap

- name: Test Summary
- name: Linux Test Summary AGS 4
uses: nikeee/tap-summary@dist
with:
path: "binaries/Linux/data/agstest.tap"
path: "ags4-binaries/Linux/data/agstest.tap"
if: always()
8 changes: 4 additions & 4 deletions ags3/auto-test/Game.agf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--DO NOT EDIT THIS FILE. It is automatically generated by the AGS Editor, changing it manually could break your game-->
<AGSEditorDocument Version="3.0.3.2" VersionIndex="3060110" EditorVersion="3.6.1.17">
<AGSEditorDocument Version="3.0.3.2" VersionIndex="3060110" EditorVersion="3.6.1.19">
<Game>
<Settings>
<AllowRelativeAssetResolutions>False</AllowRelativeAssetResolutions>
Expand Down Expand Up @@ -38,8 +38,8 @@
<EnforceObjectBasedScript>True</EnforceObjectBasedScript>
<GUIAlphaStyle>MultiplyTranslucenceSrcBlend</GUIAlphaStyle>
<GUIDAsString>{b38fb5a0-fff0-45fe-9701-71453b89bbcb}</GUIDAsString>
<GameFileName>auto-test</GameFileName>
<GameName>auto-test</GameName>
<GameFileName>ags3-auto-test</GameFileName>
<GameName>ags3-auto-test</GameName>
<GameTextEncoding>utf-8</GameTextEncoding>
<Genre>Adventure</Genre>
<GlobalSpeechAnimationDelay>5</GlobalSpeechAnimationDelay>
Expand All @@ -62,7 +62,7 @@
<RoomTransition>FadeOutAndIn</RoomTransition>
<RunGameLoopsWhileDialogOptionsDisplayed>False</RunGameLoopsWhileDialogOptionsDisplayed>
<SaveGameFileExtension />
<SaveGameFolderName>auto-test</SaveGameFolderName>
<SaveGameFolderName>ags3-auto-test</SaveGameFolderName>
<SaveScreenshots>False</SaveScreenshots>
<ScaleCharacterSpriteOffsets>False</ScaleCharacterSpriteOffsets>
<ScaleMovementSpeedWithMaskResolution>False</ScaleMovementSpeedWithMaskResolution>
Expand Down
6 changes: 3 additions & 3 deletions ags4/auto-test/Game.agf
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<DisplayMultipleInventory>False</DisplayMultipleInventory>
<ExtendedCompiler>False</ExtendedCompiler>
<GUIDAsString>{b38fb5a0-fff0-45fe-9701-71453b89bbcb}</GUIDAsString>
<GameFileName>auto-test</GameFileName>
<GameName>auto-test</GameName>
<GameFileName>ags4-auto-test</GameFileName>
<GameName>ags4-auto-test</GameName>
<GameTextEncoding>utf-8</GameTextEncoding>
<GameTextLanguage>en_US</GameTextLanguage>
<Genre>Adventure</Genre>
Expand All @@ -54,7 +54,7 @@
<RoomTransition>FadeOutAndIn</RoomTransition>
<RunGameLoopsWhileDialogOptionsDisplayed>False</RunGameLoopsWhileDialogOptionsDisplayed>
<SaveGameFileExtension />
<SaveGameFolderName>auto-test</SaveGameFolderName>
<SaveGameFolderName>ags4-auto-test</SaveGameFolderName>
<SaveScreenshots>False</SaveScreenshots>
<ScaleCharacterSpriteOffsets>False</ScaleCharacterSpriteOffsets>
<ScriptAPIVersion>Highest</ScriptAPIVersion>
Expand Down

0 comments on commit 7f620d2

Please sign in to comment.