File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,26 @@ jobs:
106106 ref : master-amnezia
107107 path : Cloak
108108
109- - name : ' Run build script'
109+ # - name: 'Run build script'
110+ # working-directory: Cloak
111+ # run: |
112+ # CGO_ENABLED=1 GOOS="darwin" GOARCH="amd64" go build -v -o ./release/plugin/darwin/ck-ovpn-plugin.a -buildmode=c-archive ./cmd/ck-ovpn-plugin/
113+ - name : Build for x86_64
110114 working-directory : Cloak
111115 run : |
112- CGO_ENABLED=1 GOOS="darwin" GOARCH="amd64" go build -v -o ./release/plugin/darwin/ck-ovpn-plugin.a -buildmode=c-archive ./cmd/ck-ovpn-plugin/
113-
116+ CGO_ENABLED=1 GOOS="darwin" GOARCH="amd64" go build -v -o ./release/plugin/darwin/ck-ovpn-plugin-x86_64.a -buildmode=c-archive ./cmd/ck-ovpn-plugin/
117+
118+ - name : Build for arm64
119+ working-directory : Cloak
120+ run : |
121+ CGO_ENABLED=1 GOOS="darwin" GOARCH="arm64" go build -v -o ./release/plugin/darwin/ck-ovpn-plugin-arm64.a -buildmode=c-archive ./cmd/ck-ovpn-plugin/
122+
123+ - name : Create Fat Binary (Universal Binary)
124+ working-directory : Cloak
125+ run : |
126+ lipo -create -output ./release/plugin/darwin/ck-ovpn-plugin.a \
127+ ./release/plugin/darwin/ck-ovpn-plugin-x86_64.a \
128+ ./release/plugin/darwin/ck-ovpn-plugin-arm64.a
114129 - name : Archive artifacts
115130 uses : actions/upload-artifact@v3
116131 with :
You can’t perform that action at this time.
0 commit comments