Skip to content

Commit

Permalink
export samples in CI. call yarn project compilation synchronously in …
Browse files Browse the repository at this point in the history
…more locations
  • Loading branch information
dogboydog committed Dec 2, 2023
1 parent 7d156f3 commit 5f5427e
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 155 deletions.
50 changes: 37 additions & 13 deletions .github/workflows/continuous_build_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
- '**/*.md'
- 'docs/**'
env:
GODOT_CLI: ./godot/godot.x86_64
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true

defaults:
run:
shell: bash
Expand All @@ -20,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
godotDownload: ["https://downloads.tuxfamily.org/godotengine/4.1.3/mono/Godot_v4.1.3-stable_mono_linux_x86_64.zip", "https://downloads.tuxfamily.org/godotengine/4.2/mono/Godot_v4.2-stable_mono_linux_x86_64.zip"]
godotVersion: ["4.1.3", "4.2.0"]
targetFramework: ["net6.0", "net7.0"]
name: Build
runs-on: ubuntu-latest
Expand All @@ -36,20 +38,42 @@ jobs:
- name: Set Target Framework ${{ matrix.targetFramework }}
run: |
sed -i 's|<TargetFramework>.*<|<TargetFramework>'${{ matrix.targetFramework }}'<|g' YarnSpinner-Godot.csproj
- name: Download Godot
id: downloadGodot
- uses: chickensoft-games/setup-godot@v1
name: 🤖 Setup Godot
with:
version: ${{ matrix.godotVersion}}
# Use .NET-enabled version of Godot (the default is also true).
use-dotnet: true

- name: 🔬 Verify Setup
run: |
wget -O godot.zip ${{ matrix.godotDownload }}
unzip godot.zip
mv ./Godot_v4* ./godot
touch ./godot/.gdignore
mv ./godot/*.x86_64 $GODOT_CLI
dotnet --version
godot --version
- name: Build solution
id: buildSolution
run: |
$GODOT_CLI --headless --path . --verbose -q -e --build-solutions --quit
# sometimes --build-solutions still exits with code 0, so double check
godot --headless --path . --verbose -e --build-solutions --quit
dotnet build
timeout-minutes: 2
timeout-minutes: 2

- name: Export samples
id: exportSamples
run: |
exportPath=./build/linux64_debug/YarnSpinner-GodotSamples.x86_64
mkdir -p "$(dirname $exportPath)"
godot --headless --path . --verbose --export-debug linux_x86_64 "$exportPath" --quit
if ! test -f "$exportPath"; then
echo "::error::Failed to export the debug samples to $exportPath"
exit 1
fi
exportPath=./build/linux64/YarnSpinner-GodotSamples.x86_64
mkdir -p "$(dirname $exportPath)"
godot --headless --path . --verbose --export-release linux_x86_64 "$exportPath" --quit
if ! test -f "$exportPath"; then
echo "::error::Failed to export the release samples to $exportPath"
exit 1
fi
timeout-minutes: 6
2 changes: 1 addition & 1 deletion Samples/MarkupPalette/Palette-dialogue.yarn.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="yarnscript"
type="Resource"
uid="uid://dwascvkaa7nmf"
uid="uid://cxb41xoif5iib"
path="res://.godot/imported/Palette-dialogue.yarn-caa39b62f3fe47a6c11e168523b4ecdb.tres"

[deps]
Expand Down
2 changes: 1 addition & 1 deletion Samples/MarkupPalette/Palette.yarnproject.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="yarnproject"
type="Resource"
uid="uid://b1abkyu12dnfd"
uid="uid://rr8xlqj5fkjd"
path="res://.godot/imported/Palette.yarnproject-2c1612daef56a2c0f2be9d1a92c0c8b9.tres"

[deps]
Expand Down
2 changes: 1 addition & 1 deletion Samples/PausingTypewriter/PauseDialogue.yarn.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="yarnscript"
type="Resource"
uid="uid://dgw4ojltf2hn6"
uid="uid://hjgqmuramr6p"
path="res://.godot/imported/PauseDialogue.yarn-926959666337d027238a2c8dd345367d.tres"

[deps]
Expand Down
2 changes: 1 addition & 1 deletion Samples/PausingTypewriter/PauseProj.yarnproject.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="yarnproject"
type="Resource"
uid="uid://833nti2rn1c0"
uid="uid://21gon4fidoq8"
path="res://.godot/imported/PauseProj.yarnproject-744c25107925e6d1f7a2789f0626afa3.tres"

[deps]
Expand Down
2 changes: 1 addition & 1 deletion Samples/RoundedViews/Rounded.yarnproject.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="yarnproject"
type="Resource"
uid="uid://60ierya2lso6"
uid="uid://i6tlrqbg4dbf"
path="res://.godot/imported/Rounded.yarnproject-f4f7cd79583437b6fbb15d97bcf58422.tres"

[deps]
Expand Down
2 changes: 1 addition & 1 deletion Samples/RoundedViews/RoundedDialogue.yarn.import
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

importer="yarnscript"
type="Resource"
uid="uid://7ukn607q8q87"
uid="uid://4k86j6pstse4"
path="res://.godot/imported/RoundedDialogue.yarn-782e62627649fc50f7a31dbc32e16966.tres"

[deps]
Expand Down
Loading

0 comments on commit 5f5427e

Please sign in to comment.