We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b32643 commit ea2bc0bCopy full SHA for ea2bc0b
1 file changed
.github/workflows/macos.yml
@@ -8,6 +8,8 @@ on:
8
jobs:
9
build-macos:
10
runs-on: macos-latest
11
+ # 架构为 arm64
12
+ arch: arm64
13
14
steps:
15
- name: Checkout code
@@ -33,13 +35,10 @@ jobs:
33
35
run: |
34
36
script_path="$HOME/.vmodules/kingbes/libgo/go/build.sh"
37
chmod +x "$script_path"
- "$script_path"
-
38
- - name: Set arch arm64
39
- run: export ARCHFLAGS="-arch arm64"
+ ARCH="$arch" "$script_path"
40
41
- name: Build project
42
- run: v -cc gcc -os macos -o bny .
+ run: ARCH="$arch" v -cc gcc -os macos -o bny .
43
44
- name: Verify binary
45
0 commit comments