Skip to content

Commit 29529fb

Browse files
ci: build on MacOS
1 parent 80d78d2 commit 29529fb

File tree

2 files changed

+71
-3
lines changed

2 files changed

+71
-3
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,35 @@ jobs:
183183
name: BinaryStream-linux-arm64-${{ github.sha }}
184184
path: artifacts/BinaryStream-linux-arm64.zip
185185

186-
build-macos:
186+
build-macos-x86_64:
187+
name: Build on MacOS X86_64 (Clang)
188+
runs-on: macos-14
189+
steps:
190+
- name: Checkout repository
191+
uses: actions/checkout@v4
192+
193+
- name: Install xmake
194+
uses: xmake-io/github-action-setup-xmake@v1
195+
196+
- name: Build BinaryStream Static (Debug)
197+
run: xmake f --mode=debug --kind=static --arch=x86_64 && xmake --all
198+
199+
- name: Build BinaryStream Shared (Debug)
200+
run: xmake f --mode=debug --kind=shared --arch=x86_64 && xmake --all
201+
202+
- name: Build BinaryStream Static (Release)
203+
run: xmake f --mode=release --kind=static --arch=x86_64 && xmake --all
204+
205+
- name: Build BinaryStream Shared (Release)
206+
run: xmake f --mode=release --kind=shared --arch=x86_64 && xmake --all
207+
208+
- name: Upload Artifact
209+
uses: actions/upload-artifact@v4
210+
with:
211+
name: BinaryStream-macosx-x86_64-${{ github.sha }}
212+
path: artifacts/BinaryStream-macosx-x86_64.zip
213+
214+
build-macos-arm64:
187215
name: Build on MacOS ARM64 (Clang)
188216
runs-on: macos-14
189217
steps:

.github/workflows/release.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)