Skip to content

Commit

Permalink
Update matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ephread committed Jan 26, 2024
1 parent 50e1f6f commit c392e18
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:

strategy:
matrix:
destination:
version:
- "4.2"
- "4.2.1"
flavor:
- "vanilla"
- "mono"

steps:
- name: "(Shared) Check out the repository"
Expand All @@ -39,8 +42,9 @@ jobs:
mv inkgd/ci_export_presets.cfg inkgd/export_presets.cfg
- name: "(Vanilla) Install Godot"
if: ${{ matrix.version == 'vanilla' }}
env:
VERSION: ${{ matrix.destination }}
VERSION: ${{ matrix.version }}
run: |
wget -q https://downloads.tuxfamily.org/godotengine/${VERSION}/Godot_v${VERSION}-stable_linux.x86_64.zip
unzip Godot_v${VERSION}-stable_linux.x86_64.zip
Expand All @@ -53,17 +57,20 @@ jobs:
# assets at first, since inkgd won't run properly at first due to…
# … missing assets.
- name: "(Vanilla) Reimport Assets"
if: ${{ matrix.version == 'vanilla' }}
run: |
./godot --headless --path "inkgd" --export-pack "HTML5" dummy.pck
./godot --headless --path "inkgd" --export-pack "HTML5" dummy.pck
- name: "(Vanilla) Run tests"
if: ${{ matrix.version == 'vanilla' }}
run: |
./godot --headless -d -s --path "inkgd" "addons/gut/gut_cmdln.gd"
- name: "(Mono) Install Godot"
if: ${{ matrix.version == 'mono' }}
env:
VERSION: ${{ matrix.destination }}
VERSION: ${{ matrix.version }}
run: |
wget -q https://downloads.tuxfamily.org/godotengine/${VERSION}/mono/Godot_v${VERSION}-stable_mono_linux_x86_64.zip
unzip Godot_v${VERSION}-stable_mono_linux_x86_64.zip
Expand All @@ -72,14 +79,16 @@ jobs:
chmod +x godot_mono/godot_mono
- name: "(Mono) Install Ink Runtime"
if: ${{ matrix.version == 'mono' }}
run: |
wget -q https://github.com/inkle/ink/releases/download/v1.1.1/inklecate_windows.zip
unzip inklecate_windows.zip
mv ink-engine-runtime.dll inkgd/addons/inkgd/mono/assemblies/ink-engine-runtime.dll
- name: "(Mono) Patch project file to match version"
if: ${{ matrix.version == 'mono' }}
env:
VERSION: ${{ matrix.destination }}
VERSION: ${{ matrix.version }}
run: |
VERSION_COMPONENTS=(${VERSION//./ })
NUMBER_OF_COMPONENTS=${#VERSION_COMPONENTS[@]}
Expand All @@ -103,6 +112,7 @@ jobs:
cd ..
- name: "(Mono) Compile C# solution"
if: ${{ matrix.version == 'mono' }}
run: |
./godot_mono/godot_mono --headless --quit --path "inkgd"
cd inkgd
Expand All @@ -115,10 +125,12 @@ jobs:
# assets at first, since inkgd won't run properly at first due to…
# … missing assets.
- name: "(Mono) Reimport Assets"
if: ${{ matrix.version == 'mono' }}
run: |
./godot_mono/godot_mono --headless --path "inkgd" --export-pack "HTML5" dummy.pck
./godot_mono/godot_mono --headless --path "inkgd" --export-pack "HTML5" dummy.pck
- name: "(Mono) Run tests (Mono)"
if: ${{ matrix.version == 'mono' }}
run: |
./godot_mono/godot_mono --headless -d -s --path "inkgd" "addons/gut/gut_cmdln.gd"
2 changes: 1 addition & 1 deletion inkgd.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/4.2.0">
<Project Sdk="Godot.NET.Sdk/4.2.1">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
Expand Down

0 comments on commit c392e18

Please sign in to comment.