summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-04-24 11:45:11 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-04-24 13:00:30 +0200
commit24ad73b13fa814916128865d2bc80aa97ed9560f (patch)
tree65dcdd3f0c02a5443af2c58c1d1e0dbb79703af7
parenta4fbe4c01f5d4e47bd047b091a65fef9f7eb2cca (diff)
downloadredot-engine-24ad73b13fa814916128865d2bc80aa97ed9560f.tar.gz
[CI] [macOS] Build for both `arm64` and `x86_64`
Creates a universal build, to catch discrepancies on different architectures
-rw-r--r--.github/workflows/macos_builds.yml18
1 files changed, 14 insertions, 4 deletions
diff --git a/.github/workflows/macos_builds.yml b/.github/workflows/macos_builds.yml
index 04bdf971ca..70031ec4c3 100644
--- a/.github/workflows/macos_builds.yml
+++ b/.github/workflows/macos_builds.yml
@@ -14,7 +14,7 @@ concurrency:
jobs:
build-macos:
- runs-on: "macos-12"
+ runs-on: "macos-latest"
name: ${{ matrix.name }}
strategy:
fail-fast: false
@@ -24,7 +24,7 @@ jobs:
cache-name: macos-editor
target: editor
tests: true
- bin: "./bin/godot.macos.editor.x86_64"
+ bin: "./bin/godot.macos.editor.universal"
- name: Template (target=template_release)
cache-name: macos-template
@@ -50,16 +50,26 @@ jobs:
run: |
sh misc/scripts/install_vulkan_sdk_macos.sh
- - name: Compilation
+ - name: Compilation (x86_64)
uses: ./.github/actions/godot-build
with:
- sconsflags: ${{ env.SCONSFLAGS }}
+ sconsflags: ${{ env.SCONSFLAGS }} arch=x86_64
+ platform: macos
+ target: ${{ matrix.target }}
+ tests: ${{ matrix.tests }}
+
+ - name: Compilation (arm64)
+ uses: ./.github/actions/godot-build
+ with:
+ sconsflags: ${{ env.SCONSFLAGS }} arch=arm64
platform: macos
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
- name: Prepare artifact
run: |
+ lipo -create ./bin/godot.macos.${{ matrix.target }}.x86_64 ./bin/godot.macos.${{ matrix.target }}.arm64 -output ./bin/godot.macos.${{ matrix.target }}.universal
+ rm ./bin/godot.macos.${{ matrix.target }}.x86_64 ./bin/godot.macos.${{ matrix.target }}.arm64
strip bin/godot.*
chmod +x bin/godot.*