diff --git a/.github/workflows/gut.yml b/.github/workflows/gut.yml index c62201f..418a642 100644 --- a/.github/workflows/gut.yml +++ b/.github/workflows/gut.yml @@ -11,6 +11,6 @@ jobs: - name: Execute GUT Unit Test uses: ceceppa/godot-gut-ci@main with: - godot_version: 4.2.1 + godot_version: 4.2.2 gut_params: -gdir=res://src/test/unit -gprefix=test_ -gsuffix=.gd project_path: godot \ No newline at end of file diff --git a/.github/workflows/linux_export.yml b/.github/workflows/linux_export.yml new file mode 100644 index 0000000..836d210 --- /dev/null +++ b/.github/workflows/linux_export.yml @@ -0,0 +1,37 @@ +name: Export Test - Linux + +on: [push] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -Dwarnings + CARGO_INCREMENTAL: 0 + +jobs: + export-linux: + 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: | + ls rust/target + cd godot + godot --headless --import --export-debug "Linux/X11" "../export/linux/Godot Spike.x86_64" + ls ../export/linux/ diff --git a/godot/RustPlugin.gdextension b/godot/RustPlugin.gdextension index d08c21d..49de7ea 100644 --- a/godot/RustPlugin.gdextension +++ b/godot/RustPlugin.gdextension @@ -4,17 +4,17 @@ compatibility_minimum = 4.2 reloadable = false [libraries] -linux.release.x86_64 = "res://../rust/target/release/libgodot_plugin.so" linux.debug.x86_64 = "res://../rust/target/debug/libgodot_plugin.so" +linux.release.x86_64 = "res://../rust/target/release/libgodot_plugin.so" -android.release.arm64 = "res://../rust/target/aarch64-linux-android/debug/libgodot_plugin.so" android.debug.arm64 = "res://../rust/target/aarch64-linux-android/release/libgodot_plugin.so" +android.release.arm64 = "res://../rust/target/aarch64-linux-android/debug/libgodot_plugin.so" -windows.debug.x86_64 = "res://../rust/target/debug/godot_plugin.dll" -windows.release.x86_64 = "res://../rust/target/release/godot_plugin.dll" +windows.debug.x86_64 = "res://../rust/target/x86_64-pc-windows-msvc/debug/godot_plugin.dll" +windows.release.x86_64 = "res://../rust/target/x86_64-pc-windows-msvc/release/godot_plugin.dll" macos.debug = "res://../rust/target/debug/libgodot_plugin.dylib" macos.release = "res://../rust/target/release/libgodot_plugin.dylib" -#macos.debug.arm64 = "res://../rust/target/debug/lib{YourCrate}.dylib" -#macos.release.arm64 = "res://../rust/target/release/lib{YourCrate}.dylib" +#macos.debug.arm64 = "res://../rust/target/debug/lib{YourCrate}.dylib" +#macos.release.arm64 = "res://../rust/target/release/lib{YourCrate}.dylib" diff --git a/justfile b/justfile index 146ee1e..4804898 100644 --- a/justfile +++ b/justfile @@ -39,7 +39,7 @@ windows-debug: [windows] windows-release: - {{rustdir}} cargo build --target x86_64-pc-windows-gnu --release + {{rustdir}} cargo build --target x86_64-pc-windows-msvc --release {{godotdir}} godot --headless --export-release "Windows Desktop" "../export/windows/Godot Spike.exe" [macos]