This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement linux export test as CI GitHub action
- Loading branch information
1 parent
7e356b4
commit fc5b2c8
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Linux Export Test | ||
|
||
on: [push] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -Dwarnings | ||
CARGO_INCREMENTAL: 0 | ||
|
||
jobs: | ||
rust-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rui314/setup-mold@v1 | ||
- uses: chickensoft-games/setup-godot@v1 | ||
name: 🤖 Setup Godot | ||
with: | ||
version: 4.2.1 | ||
include-templates: true | ||
- name: Build | ||
run: cd rust; cargo build --release | ||
|
||
- name: Godot Check | ||
run: | | ||
godot --version | ||
- name: Godot Export | ||
run: | | ||
cd godot | ||
godot --headless --export-debug "Linux/X11" "../export/linux/Godot Spike.x86_64" | ||
if [ ! -f "../export/linux/Godot Spike" ]; then | ||
echo "Exported file not found" | ||
exit 1 | ||
fi |