@@ -154,7 +154,35 @@ jobs:
154154 name : BinaryStream-linux-arm64-${{ github.sha }}
155155 path : artifacts/BinaryStream-linux-arm64.zip
156156
157- build-macos :
157+ build-macos-x86_64 :
158+ name : Build on MacOS X86_64 (Clang)
159+ runs-on : macos-14
160+ steps :
161+ - name : Checkout repository
162+ uses : actions/checkout@v4
163+
164+ - name : Install xmake
165+ uses : xmake-io/github-action-setup-xmake@v1
166+
167+ - name : Build BinaryStream Static (Debug)
168+ run : xmake f --mode=debug --kind=static --arch=x86_64 && xmake --all
169+
170+ - name : Build BinaryStream Shared (Debug)
171+ run : xmake f --mode=debug --kind=shared --arch=x86_64 && xmake --all
172+
173+ - name : Build BinaryStream Static (Release)
174+ run : xmake f --mode=release --kind=static --arch=x86_64 && xmake --all
175+
176+ - name : Build BinaryStream Shared (Release)
177+ run : xmake f --mode=release --kind=shared --arch=x86_64 && xmake --all
178+
179+ - name : Upload Artifact
180+ uses : actions/upload-artifact@v4
181+ with :
182+ name : BinaryStream-macosx-x86_64-${{ github.sha }}
183+ path : artifacts/BinaryStream-macosx-x86_64.zip
184+
185+ build-macos-arm64 :
158186 name : Build on MacOS ARM64 (Clang)
159187 runs-on : macos-14
160188 steps :
@@ -182,7 +210,9 @@ jobs:
182210 - build-windows-x86_64
183211 - build-windows-arm64
184212 - build-linux-x86_64
185- - build-macos
213+ - build-linux-arm64
214+ - build-macos-x86_64
215+ - build-macos-arm64
186216 permissions :
187217 contents : write
188218 runs-on : ubuntu-latest
@@ -204,6 +234,16 @@ jobs:
204234 name : BinaryStream-linux-x86_64-${{ github.sha }}
205235 path : artifact
206236
237+ - uses : actions/download-artifact@v4
238+ with :
239+ name : BinaryStream-linux-arm64-${{ github.sha }}
240+ path : artifact
241+
242+ - uses : actions/download-artifact@v4
243+ with :
244+ name : BinaryStream-macosx-x86_64-${{ github.sha }}
245+ path : artifact
246+
207247 - uses : actions/download-artifact@v4
208248 with :
209249 name : BinaryStream-macosx-arm64-${{ github.sha }}
0 commit comments