Skip to content

Commit

Permalink
Added aarch64-apple-darwin target
Browse files Browse the repository at this point in the history
  • Loading branch information
creatoy committed Dec 18, 2023
1 parent fb16ed5 commit 6cf8413
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Action name
name: Release
name: Deploy

# 触发条件,这里是新的 tag 被 push 时触发
on:
Expand All @@ -13,7 +13,7 @@ permissions:
contents: write

env:
GODOT_VERSION: 4.2
GODOT_VERSION: 4.1

# 实际工作
jobs:
Expand All @@ -40,12 +40,12 @@ jobs:
target: x86_64-apple-darwin
features: ""

# - name: MacOS (aarch64)
# platform: macos
# arch: aarch64
# os: macos-latest
# target: aarch64-apple-darwin
# features: ""
- name: MacOS (arm64)
platform: macos
arch: aarch64
os: macos-latest
target: aarch64-apple-darwin
features: ""

- name: Windows (x64)
platform: windows
Expand Down Expand Up @@ -136,11 +136,11 @@ jobs:
compatibility_minimum = ${{ env.GODOT_VERSION }}
[libraries]
${{ matrix.platform }}.debug.${{ matrix.arch }} = "bin/$bin_file_debug"
${{ matrix.platform }}.${{ matrix.arch }}.debug = "bin/$bin_file_debug"
EOF
archive_name="$addon_name-${{ env.VERSION }}-${{ matrix.platform }}-debug-${{ matrix.arch }}"
archive_name="$addon_name-${{ env.VERSION }}-${{ matrix.platform }}-${{ matrix.arch }}-debug"
cd debug_build
if [ "${{ matrix.platform }}" = "windows" ]; then
Expand Down Expand Up @@ -194,11 +194,11 @@ jobs:
compatibility_minimum = ${{ env.GODOT_VERSION }}
[libraries]
${{ matrix.platform }}.release.${{ matrix.arch }} = "bin/$bin_file_release"
${{ matrix.platform }}.${{ matrix.arch }} = "bin/$bin_file_release"
EOF
archive_name="$addon_name-${{ env.VERSION }}-${{ matrix.platform }}-release-${{ matrix.arch }}"
archive_name="$addon_name-${{ env.VERSION }}-${{ matrix.platform }}-${{ matrix.arch }}-release"
cd release_build
if [ "${{ matrix.platform }}" = "windows" ]; then
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ crate-type = ["cdylib"]
hidapi = "2.4.1"
godot = { git = "https://github.com/godot-rust/gdext", branch = "master" }

[patch."https://github.com/godot-rust/godot4-prebuilt".godot4-prebuilt]
git = "https://github.com//godot-rust/godot4-prebuilt"
branch = "4.1"

[profile.dev]
split-debuginfo = "packed"

0 comments on commit 6cf8413

Please sign in to comment.