remove concurrent #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test for template build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-templates: | |
uses: ./.github/workflows/godot-template-build.yml | |
with: | |
version: 4.3 | |
secrets: inherit | |
build-project: | |
runs-on: ubuntu-latest | |
needs: build-templates | |
container: barichello/godot-ci:4.3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Templates | |
uses: ./setup | |
with: | |
version: 4.3 | |
channel: linux | |
encryption-key: ${{ env.ENCRYPTION_KEY }} | |
game-folder: godot-game | |
- name: Build Project | |
run: | | |
mkdir -p build/linux | |
godot --export-release --headless --path godot-game linux "../build/linux/main.x86_64" | |
- name: Run Game | |
run: | | |
./build/linux/main.x86_64 > result.txt | |
OUTPUT=$(echo result.txt | grep "GAME SUCCESSFUL") | |
if [ -z "$OUTPUT" ]; then | |
echo "Game failed" | |
exit 1 | |
fi |