Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Implement windows export
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianpercic committed May 15, 2024
1 parent e12327d commit 33019f2
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/gut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ jobs:
godot_version: 4.2.2
gut_params: -gconfig=res://gut_editor_config.json
project_path: godot

51 changes: 51 additions & 0 deletions .github/workflows/windows_export.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33019f2

Please sign in to comment.