diff --git a/.github/workflows/gut.yml b/.github/workflows/gut.yml index d03988c..2e4e901 100644 --- a/.github/workflows/gut.yml +++ b/.github/workflows/gut.yml @@ -15,4 +15,3 @@ jobs: godot_version: 4.2.2 gut_params: -gconfig=res://gut_editor_config.json project_path: godot - diff --git a/.github/workflows/windows_export.yml b/.github/workflows/windows_export.yml new file mode 100644 index 0000000..93e6989 --- /dev/null +++ b/.github/workflows/windows_export.yml @@ -0,0 +1,51 @@ +name: Windows Export + +on: [push] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -Dwarnings + CARGO_INCREMENTAL: 0 + +jobs: + export-windows: + runs-on: windows-latest + defaults: + run: + shell: sh + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + - uses: rui314/setup-mold@v1 + - uses: chickensoft-games/setup-godot@v1 + name: Setup Godot + with: + version: 4.2.2 + include-templates: true + use-dotnet: false + - uses: Swatinem/rust-cache@v2 + with: + workspaces: "rust -> target" + cache-all-crates: "true" + + - name: Install just + run: cargo install just + + - name: just Check + run: just --version + + - name: Godot Check + run: | + godot --version + + - name: Godot Export + run: | + set -x + mkdir godot/.godot + touch godot/.godot/extension_list.cfg + echo "res://rust.gdextension" >> godot/.godot/extension_list.cfg + just windows-release diff --git a/justfile b/justfile index e30eb0a..3f1356a 100644 --- a/justfile +++ b/justfile @@ -7,7 +7,7 @@ android_keystore := "secrets/debug.keystore" # ------------------------------------------------- # Build and export binaries for different platforms -# Sometimes there are 'same' commands, but for different OS +# Sometimes there are 'same' commands, but for different OS [linux] linux-debug: {{rustdir}} cargo build