From e149334edbbee7c16a8334b1366039dc7aa6f0ab Mon Sep 17 00:00:00 2001 From: Dorian Percic Date: Wed, 15 May 2024 17:00:06 +0200 Subject: [PATCH] Implement CI for MacOS export --- .github/workflows/macos_export.yml | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/macos_export.yml diff --git a/.github/workflows/macos_export.yml b/.github/workflows/macos_export.yml new file mode 100644 index 0000000..7db8226 --- /dev/null +++ b/.github/workflows/macos_export.yml @@ -0,0 +1,42 @@ +name: MacOS Export + +on: [push] + +jobs: + export-macos: + runs-on: macos-latest + 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 macos-release