Skip to content

Commit dcfe246

Browse files
ci: cross platform build
1 parent c46a4d7 commit dcfe246

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,22 @@ jobs:
6767

6868
- name: Build BinaryStream Static (Debug)
6969
run: |
70-
xmake f --mode=debug --kind=static
70+
xmake f --mode=debug --arch=arm64 --kind=static
7171
xmake --all
7272
7373
- name: Build BinaryStream Shared (Debug)
7474
run: |
75-
xmake f --mode=debug --kind=shared
75+
xmake f --mode=debug --arch=arm64 --kind=shared
7676
xmake --all
7777
7878
- name: Build BinaryStream Static (Release)
7979
run: |
80-
xmake f --mode=release --kind=static
80+
xmake f --mode=release --arch=arm64 --kind=static
8181
xmake --all
8282
8383
- name: Build BinaryStream Shared (Release)
8484
run: |
85-
xmake f --mode=release --kind=shared
85+
xmake f --mode=release --arch=arm64 --kind=shared
8686
xmake --all
8787
8888
- name: Upload Artifact
@@ -227,22 +227,22 @@ jobs:
227227

228228
- name: Build BinaryStream Static (Debug)
229229
run: |
230-
xmake f --mode=debug --kind=static
230+
xmake f --mode=debug --arch=x86_64 --kind=static
231231
xmake --all
232232
233233
- name: Build BinaryStream Shared (Debug)
234234
run: |
235-
xmake f --mode=debug --kind=shared
235+
xmake f --mode=debug --arch=x86_64 --kind=shared
236236
xmake --all
237237
238238
- name: Build BinaryStream Static (Release)
239239
run: |
240-
xmake f --mode=release --kind=static
240+
xmake f --mode=release --arch=x86_64 --kind=static
241241
xmake --all
242242
243243
- name: Build BinaryStream Shared (Release)
244244
run: |
245-
xmake f --mode=release --kind=shared
245+
xmake f --mode=release --arch=x86_64 --kind=shared
246246
xmake --all
247247
248248
- name: Upload Artifact

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252

5353
- name: Build BinaryStream Static (Release)
5454
run: |
55-
xmake f --mode=release --kind=static
55+
xmake f --mode=release --arch=arm64 --kind=static
5656
xmake --all
5757
5858
- name: Build BinaryStream Shared (Release)
5959
run: |
60-
xmake f --mode=release --kind=shared
60+
xmake f --mode=release --arch=arm64 --kind=shared
6161
xmake --all
6262
6363
- name: Upload Artifact
@@ -182,12 +182,12 @@ jobs:
182182

183183
- name: Build BinaryStream Static (Release)
184184
run: |
185-
xmake f --mode=release --kind=static
185+
xmake f --mode=release --arch=x86_64 --kind=static
186186
xmake --all
187187
188188
- name: Build BinaryStream Shared (Release)
189189
run: |
190-
xmake f --mode=release --kind=shared
190+
xmake f --mode=release --arch=x86_64 --kind=shared
191191
xmake --all
192192
193193
- name: Upload Artifact

0 commit comments

Comments
 (0)