Skip to content

Commit

Permalink
Re-enable C# CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
ephread committed Jan 26, 2024
1 parent c71f215 commit 7a8d3ab
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
destination:
- "4.2"
- "4.2.1"

steps:
- name: "(Shared) Check out the repository"
Expand Down Expand Up @@ -60,29 +60,29 @@ jobs:
run: |
./godot --headless -d -s --path "inkgd" "addons/gut/gut_cmdln.gd"
# - name: "(Mono) Install Godot"
# env:
# VERSION: ${{ matrix.destination }}
# run: |
# wget -q https://downloads.tuxfamily.org/godotengine/${VERSION}/mono/Godot_v${VERSION}-stable_mono_linux_headless_64.zip
# unzip Godot_v${VERSION}-stable_mono_linux_headless_64.zip
# mv Godot_v${VERSION}-stable_mono_linux_headless_64 godot_mono
# mv godot_mono/Godot_v${VERSION}-stable_mono_linux_headless.64 godot_mono/godot_mono
# chmod +x godot_mono/godot_mono
- name: "(Mono) Install Godot"
env:
VERSION: ${{ matrix.destination }}
run: |
wget -q https://downloads.tuxfamily.org/godotengine/${VERSION}/mono/Godot_v${VERSION}-stable_mono_linux_headless_64.zip
unzip Godot_v${VERSION}-stable_mono_linux_headless_64.zip
mv Godot_v${VERSION}-stable_mono_linux_headless_64 godot_mono
mv godot_mono/Godot_v${VERSION}-stable_mono_linux_headless.64 godot_mono/godot_mono
chmod +x godot_mono/godot_mono
# - name: "(Mono) Install Ink Runtime"
# run: |
# wget -q https://github.com/inkle/ink/releases/download/v1.1.0/inklecate_windows.zip
# unzip inklecate_windows.zip
# mv ink-engine-runtime.dll inkgd/addons/inkgd/mono/assemblies/ink-engine-runtime.dll
- name: "(Mono) Install Ink Runtime"
run: |
wget -q https://github.com/inkle/ink/releases/download/v1.1.0/inklecate_windows.zip
unzip inklecate_windows.zip
mv ink-engine-runtime.dll inkgd/addons/inkgd/mono/assemblies/ink-engine-runtime.dll
# - name: "(Mono) Compile C# solution"
# run: |
# ./godot_mono/godot_mono --headless --quit --path "inkgd"
# cd inkgd
# msbuild inkgd.sln /restore /t:Build /p:Configuration=Debug
# cd ..
- name: "(Mono) Compile C# solution"
run: |
./godot_mono/godot_mono --headless --quit --path "inkgd"
cd inkgd
msbuild inkgd.sln /restore /t:Build /p:Configuration=Debug
cd ..
# - name: "(Mono) Run tests (Mono)"
# run: |
# ./godot_mono/godot_mono --headless -d -s --path "inkgd" "addons/gut/gut_cmdln.gd"
- name: "(Mono) Run tests (Mono)"
run: |
./godot_mono/godot_mono --headless -d -s --path "inkgd" "addons/gut/gut_cmdln.gd"
4 changes: 2 additions & 2 deletions .gut_editor_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
"post_run_script": "",
"pre_run_script": "",
"prefix": "test_",
"selected": "test_variables.gd",
"selected": null,
"should_exit": true,
"should_exit_on_success": true,
"should_maximize": false,
"show_help": false,
"suffix": ".gd",
"tests": [],
"unit_test_name": "test_observe_variables"
"unit_test_name": null
}
4 changes: 2 additions & 2 deletions addons/inkgd/runtime/lists/ink_list.gd
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func set_initial_origin_names(initial_origin_names) -> void:
# TODO: Make inspectable
var max_item: InkKeyValuePair: # InkKeyValuePair<InkListItem, int>
get:
var _max_item: InkKeyValuePair = InkKeyValuePair.new_with_key_value(InkListItem.null_item, 0)
var _max_item: InkKeyValuePair = InkKeyValuePair.new_with_key_value(InkListItem.null_item(), 0)
for k in keys():
if (_max_item.key.is_null || get_item(k) > _max_item.value):
_max_item = InkKeyValuePair.new_with_key_value(k, get_item(k))
Expand All @@ -180,7 +180,7 @@ var max_item: InkKeyValuePair: # InkKeyValuePair<InkListItem, int>
# TODO: Make inspectable
var min_item: InkKeyValuePair: # InkKeyValuePair<InkListItem, int>
get:
var _min_item: InkKeyValuePair = InkKeyValuePair.new_with_key_value(InkListItem.null_item, 0)
var _min_item: InkKeyValuePair = InkKeyValuePair.new_with_key_value(InkListItem.null_item(), 0)
for k in keys():
if (_min_item.key.is_null || get_item(k) < _min_item.value):
_min_item = InkKeyValuePair.new_with_key_value(k, get_item(k))
Expand Down

0 comments on commit 7a8d3ab

Please sign in to comment.