Skip to content

Commit

Permalink
update CI to build on multiple versions of godot
Browse files Browse the repository at this point in the history
  • Loading branch information
dogboydog committed Dec 1, 2023
1 parent 77584a2 commit b2d7591
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/continuous_build_check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Continuous Build and Test

on:
pull_request:
types:
[ opened, reopened, edited, ready_for_review, synchronize ]
push:
branches-ignore:
- 'dev'
Expand All @@ -12,16 +9,21 @@ on:
- '**/*.md'
- 'docs/**'
env:
GODOT_CLI: ./Godot_v4.1.3-stable_mono_linux_x86_64/Godot_v4.1.3-stable_mono_linux.x86_64
GODOT_CLI: ./godot/godot.x86_64
defaults:
run:
shell: bash

jobs:

build:
name: Build the Project
runs-on: [ ubuntu-latest ]
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://github.com/godotengine/godot-builds/releases/download/4.2-stable/Godot_v4.2-stable_mono_linux_x86_64.zip"]

name: Build the Project and export the samples
runs-on: ubuntu-latest

steps:
# Checkout
Expand All @@ -34,18 +36,15 @@ jobs:
- name: Download Godot
id: downloadGodot
run: |
wget -O godot.zip https://downloads.tuxfamily.org/godotengine/4.1.3/mono/Godot_v4.1.3-stable_mono_linux_x86_64.zip
wget -O godot.zip ${{ matrix.godotDownload }}
unzip godot.zip
mv ./Godot_v4* ./godot
touch ./godot/.gdignore
mv ./godot/*.x86_64 $GODOT_CLI
- name: Build solution
id: buildSolution
run: |
# https://serverfault.com/questions/989742/tee-and-assigning-to-variable
{ GODOT_OUTPUT=$($GODOT_CLI --headless --path . --verbose -q -e --build-solutions --quit 2>&1 | tee /dev/fd/3); } 3>&1
if [[ "$GODOT_OUTPUT" == *"the build callback failed"* ]]; then
echo "Godot failed to build the solution."
exit 1
else
echo "Godot built the solution successfully."
fi
$GODOT_CLI --headless --path . --verbose -q -e --build-solutions --quit
timeout-minutes: 2

0 comments on commit b2d7591

Please sign in to comment.