5656 assetType : ASTC
5757 artifactName : linuxBuild-arm64
5858 artifactPath : export/release/linux/bin/*
59- - name : macOS x86_64
60- os : macos-26
61- buildArgs : " mac -final -64 -D HXCPP_M64 -D officialBuild"
62- assetType : S3TC
63- artifactName : macOSBuild-x86_64
64- artifactPath : export/release/macos/bin/*
65- - name : macOS ARM64
66- os : macos-26
67- buildArgs : " mac -final -arm64 -D HXCPP_ARM64 -D officialBuild"
68- assetType : S3TC
69- artifactName : macOSBuild-arm64
70- artifactPath : export/release/macos/bin/*
7159 - name : Android
7260 os : macos-26
7361 buildArgs : " android -final -D officialBuild"
@@ -82,15 +70,77 @@ jobs:
8270 artifactPath : " export/release/ios/build/Release-iphoneos/*.ipa"
8371 uses : ./.github/workflows/build.yml
8472 secrets :
85- SE_KEYSTORE_FILE : ${{ secrets.SE_KEYSTORE_FILE }}
86- SE_KEYSTORE_INFO_FILE : ${{ secrets.SE_KEYSTORE_INFO_FILE }}
73+ SE_KEYSTORE_FILE : ${{ secrets.SE_KEYSTORE_FILE }}
74+ SE_KEYSTORE_INFO_FILE : ${{ secrets.SE_KEYSTORE_INFO_FILE }}
75+ with :
76+ name : ${{ matrix.name }}
77+ os : ${{ matrix.os }}
78+ buildArgs : ${{ matrix.buildArgs }}
79+ assetType : ${{ matrix.assetType }}
80+ artifactName : ${{ matrix.artifactName }}
81+ artifactPath : ${{ matrix.artifactPath }}
82+
83+ Build-macOS-x86_64 :
84+ name : Build
85+ uses : ./.github/workflows/build.yml
86+ with :
87+ name : macOS x86_64
88+ os : macos-26
89+ buildArgs : " mac -64 -D HXCPP_M64"
90+ assetType : S3TC
91+ artifactName : macOSBuild-x86_64
92+ artifactPath : export/release/macos/bin/*
93+
94+ Build-macOS-ARM64 :
95+ name : Build
96+ uses : ./.github/workflows/build.yml
8797 with :
88- name : ${{ matrix.name }}
89- os : ${{ matrix.os }}
90- buildArgs : ${{ matrix.buildArgs }}
91- assetType : ${{ matrix.assetType }}
92- artifactName : ${{ matrix.artifactName }}
93- artifactPath : ${{ matrix.artifactPath }}
98+ name : macOS ARM64
99+ os : macos-26
100+ buildArgs : " mac -arm64 -D HXCPP_ARM64"
101+ assetType : S3TC
102+ artifactName : macOSBuild-arm64
103+ artifactPath : export/release/macos/bin/*
104+
105+ macOS-universal :
106+ name : macOS Universal
107+ runs-on : macos-26
108+ needs :
109+ - Build-macOS-x86_64
110+ - Build-macOS-ARM64
111+ steps :
112+ - name : Download x86_64 build
113+ uses : actions/download-artifact@main
114+ with :
115+ name : macOSBuild-x86_64-S3TC
116+ path : intel
117+
118+ - name : Download ARM64 build
119+ uses : actions/download-artifact@main
120+ with :
121+ name : macOSBuild-arm64-S3TC
122+ path : arm
123+
124+ - name : Remove ARM64 and x86_64 artifacts
125+ uses : geekyeggo/delete-artifact@main
126+ with :
127+ name : macOSBuild-*
128+
129+ - name : Create Universal App Bundle
130+ shell : bash
131+ run : |
132+ BIN="ShadowEngine.app/Contents/MacOS"
133+ INTEL="intel/ShadowEngine.app/Contents/MacOS"
134+ ARM="arm/ShadowEngine.app/Contents/MacOS"
135+ cp -R intel/ShadowEngine.app ShadowEngine.app
136+ lipo -create "$INTEL/ShadowEngine" "$ARM/ShadowEngine" -output "$BIN/ShadowEngine"
137+ lipo -create "$INTEL/lime.ndll" "$ARM/lime.ndll" -output "$BIN/lime.ndll"
138+
139+ - name : Upload Universal macOS bundle
140+ uses : actions/upload-artifact@main
141+ with :
142+ name : macOSBuild-Universal-S3TC
143+ path : ShadowEngine.app
94144
95145 Releaser :
96146 needs : [build]
@@ -159,27 +209,16 @@ jobs:
159209 cd /home/runner/linuxBuild-arm64
160210 tar czf "/home/runner/${{ env.PROJECT_NAME }}-ASTC-linux-arm64.tar" .
161211
162- - name : Download macOS ARM64 Build
163- uses : actions/download-artifact@main
164- with :
165- name : macOSBuild-arm64-S3TC
166- path : /home/runner/macOSBuild-arm64
167-
168- - name : Tar macOS ARM64 Build For Release
169- run : |
170- cd /home/runner/macOSBuild-arm64
171- tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-macOS-arm64.tar" .
172-
173- - name : Download macOS x86_64 Build
212+ - name : Download macOS Universal Build
174213 uses : actions/download-artifact@main
175214 with :
176- name : macOSBuild-x86_64 -S3TC
177- path : /home/runner/macOSBuild-x86_64
215+ name : macOSBuild-Universal -S3TC
216+ path : /home/runner/macOSBuild-Universal
178217
179218 - name : Tar macOS x86_64 Build For Release
180219 run : |
181- cd /home/runner/macOSBuild-x86_64
182- tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-macOS-x86_64 .tar" .
220+ cd /home/runner/macOSBuild-Universal
221+ tar czf "/home/runner/${{ env.PROJECT_NAME }}-S3TC-macOS-Universal .tar" .
183222
184223 - name : Download Windows i686 Build
185224 uses : actions/download-artifact@main
0 commit comments