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 f75f92d
Showing
6 changed files
with
90 additions
and
11 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Linux Build Test | ||
name: Linux Build | ||
|
||
on: [push] | ||
|
||
|
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,78 @@ | ||
name: Linux Export | ||
|
||
on: [push] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -Dwarnings | ||
CARGO_INCREMENTAL: 0 | ||
|
||
jobs: | ||
export-linux: # For now only debug export, as the release export has a bug on the Godot side | ||
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.2 | ||
include-templates: true | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "rust -> target" | ||
cache-all-crates: "true" | ||
- name: Build | ||
run: cd rust; cargo build | ||
|
||
- name: Godot Check | ||
run: | | ||
godot --version | ||
- name: Godot Export | ||
run: | | ||
cd godot | ||
godot --headless --import --export-debug "Linux/X11" "../export/linux/Godot Spike.x86_64" | ||
export-android: # Release export | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rui314/setup-mold@v1 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'oracle' | ||
java-version: '22' | ||
- uses: chickensoft-games/setup-godot@v1 | ||
name: Setup Godot | ||
with: | ||
version: 4.2.2 | ||
include-templates: true | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "rust -> target" | ||
cache-all-crates: "true" | ||
|
||
- name: Setup Android | ||
run: | | ||
keytool --version | ||
ls | ||
rustup target add aarch64-linux-android | ||
cargo install cargo-ndk | ||
scripts/install-android-tools.sh | ||
test -f "secrets/debug.keystore" || \ | ||
keytool -keyalg RSA -genkeypair -alias androiddebugkey \ | ||
-keypass android -keystore "secrets/debug.keystore" \ | ||
-storepass android -dname "CN=Android Debug,O=Android,C=US" \ | ||
-validity 9999 -deststoretype pkcs12 | ||
- name: Build | ||
run: cd rust; cargo build --target aarch64-linux-android --release | ||
|
||
- name: Godot Check | ||
run: | | ||
godot --version | ||
- name: Godot Export | ||
run: | | ||
godot --headless --export-release "Linux/X11" "../export/linux/Godot Spike.x86_64" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Windows Build Test | ||
name: Windows Build | ||
|
||
on: [push] | ||
|
||
|
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
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