Skip to content

Commit ea2bc0b

Browse files
committed
Update macos.yml
1 parent 0b32643 commit ea2bc0b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/macos.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build-macos:
1010
runs-on: macos-latest
11+
# 架构为 arm64
12+
arch: arm64
1113

1214
steps:
1315
- name: Checkout code
@@ -33,13 +35,10 @@ jobs:
3335
run: |
3436
script_path="$HOME/.vmodules/kingbes/libgo/go/build.sh"
3537
chmod +x "$script_path"
36-
"$script_path"
37-
38-
- name: Set arch arm64
39-
run: export ARCHFLAGS="-arch arm64"
38+
ARCH="$arch" "$script_path"
4039
4140
- name: Build project
42-
run: v -cc gcc -os macos -o bny .
41+
run: ARCH="$arch" v -cc gcc -os macos -o bny .
4342

4443
- name: Verify binary
4544
run: |

0 commit comments

Comments
 (0)