Skip to content

Commit

Permalink
Add Mac ARM build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregandcin committed Apr 7, 2024
1 parent c4e6e86 commit 4b9a112
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
token: ${{secrets.GITHUB_TOKEN}}
path: "bin/Pinecone_linux.zip"

publish-binaries-mac:
publish-binaries-mac-intel:
timeout-minutes: 20
runs-on: macos-latest

Expand All @@ -44,16 +44,41 @@ jobs:
go-version: "^1.21.5"

- name: Build
run: go build -o Pinecone.app
run: GOOS=darwin GOARCH=amd64 go build -o Pinecone.app

- name: Zip App
run: mkdir bin && mv Pinecone.app bin/Pinecone.app && mv data bin/data && zip -vr Pinecone_macos.zip bin -x "*.DS_Store" && mv Pinecone_macos.zip bin/
run: mkdir bin && mv Pinecone.app bin/Pinecone.app && mv data bin/data && zip -vr Pinecone_macos_intel.zip bin -x "*.DS_Store" && mv Pinecone_macos_intel.zip bin/

- name: Upload MacOS Bin
uses: djn24/add-asset-to-release@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
path: "bin/Pinecone_macos.zip"
path: "bin/Pinecone_macos_intel.zip"

publish-binaries-mac-arm:
timeout-minutes: 20
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "^1.21.5"

- name: Build
run: GOOS=darwin GOARCH=arm64 go build -o Pinecone.app

- name: Zip App
run: mkdir bin && mv Pinecone.app bin/Pinecone.app && mv data bin/data && zip -vr Pinecone_macos_arm.zip bin -x "*.DS_Store" && mv Pinecone_macos_arm.zip bin/

- name: Upload MacOS Bin
uses: djn24/add-asset-to-release@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
path: "bin/Pinecone_macos_arm.zip"

publish-binaries-win:
timeout-minutes: 20
Expand Down

0 comments on commit 4b9a112

Please sign in to comment.