aaa #417
Workflow file for this run
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: 🤖 Godot Checks | |
on: | |
push: | |
branches-ignore: | |
- godot3 | |
pull_request: | |
branches-ignore: | |
- godot3 | |
jobs: | |
linux_dotnet: | |
name: 🐧.NET Only | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- gdver: "4.2.2" | |
gdver_full: 4.2.2.stable.mono | |
templates_url: https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_mono_export_templates.tpz | |
- gdver: "4.3.0-beta.1" | |
gdver_full: 4.3.beta1 | |
templates_url: https://github.com/godotengine/godot-builds/releases/download/4.3-beta1/Godot_v4.3-beta1_mono_export_templates.tpz | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Download Godot | |
run: | | |
dotnet tool install --global Chickensoft.GodotEnv | |
godotenv godot install ${{ matrix.gdver }} | |
- name: Import resources and build | |
run: | | |
dotnet build | |
$(godotenv godot env path) --headless --import | |
- name: Run project | |
run: | | |
$(godotenv godot env path) --headless --quit-after 10 | |
- name: Download export templates | |
run: | | |
mkdir -p ~/.local/share/godot/export_templates | |
cd ~/.local/share/godot/export_templates | |
wget -q ${{ matrix.templates_url }} | |
unzip *.tpz | |
rm *.tpz | |
mv templates ${{ matrix.gdver_full }} | |
- name: Export | |
run: | | |
mkdir export | |
$(godotenv godot env path) --headless --export-release Linux | |
cd export | |
./demo --headless --quit-after 10 |