Skip to content

Commit

Permalink
Merge pull request #12 from amnezia-vpn/fixbug/build-macos-ne
Browse files Browse the repository at this point in the history
Build arm64 for cloak
  • Loading branch information
pokamest authored Nov 4, 2024
2 parents a2132cb + 6d998c8 commit c2f9fe6
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/build_cloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,26 @@ jobs:
ref: master-amnezia
path: Cloak

- name: 'Run build script'
# - name: 'Run build script'
# working-directory: Cloak
# run: |
# 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/
- name: Build for x86_64
working-directory: Cloak
run: |
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/
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/
- name: Build for arm64
working-directory: Cloak
run: |
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/
- name: Create Fat Binary (Universal Binary)
working-directory: Cloak
run: |
lipo -create -output ./release/plugin/darwin/ck-ovpn-plugin.a \
./release/plugin/darwin/ck-ovpn-plugin-x86_64.a \
./release/plugin/darwin/ck-ovpn-plugin-arm64.a
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit c2f9fe6

Please sign in to comment.