Skip to content

Commit

Permalink
updates to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Aug 4, 2023
1 parent af3f5ba commit be1fb1c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
lfs: true
submodules: true
- run: sh scripts/test.sh
timeout-minutes: 5
timeout-minutes: 1
3 changes: 3 additions & 0 deletions godot/tests/UnitTest.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ extends GutTest

func assert_contains_exact(arr: Array, items: Array):
assert_eq(arr.size(), items.size())
assert_contains_all(arr, items)

func assert_contains_all(arr: Array, items: Array):
for i in items:
assert_has(arr, i)
4 changes: 2 additions & 2 deletions scripts/build-channel.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
CHANNEL=${CHANNEL:-$1}

cd godot
mkdir -v -p build/$CHANNEL
godot --export-release $CHANNEL
mkdir -v -p ../build/$CHANNEL
godot --export-release -headless $CHANNEL
13 changes: 13 additions & 0 deletions scripts/prepare-templates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

VERSION=$1

TARGET=~/.local/share/godot/export_templates/${VERSION}.stable

if [ -f "$TARGET" ]; then
echo "Templates already installed"
exit
fi

mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${VERSION}.stable $TARGET

0 comments on commit be1fb1c

Please sign in to comment.