Skip to content

Commit

Permalink
feat: add darwin arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-singh committed Apr 11, 2022
1 parent aa8a6e6 commit 9273929
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: build
if: ${{ steps.release.outputs.release_created }}
run: |
env GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-amd .
env GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-linux-amd .
env GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-darwin-arm .
- name: Upload release binary
if: ${{ steps.release.outputs.release_created }}
Expand All @@ -39,6 +40,16 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: bin/runpodctl-amd
asset_name: runpodctl-amd
asset_path: bin/runpodctl-linux-amd
asset_name: runpodctl-linux-amd
asset_content_type: application/octet-stream
- name: Upload release binary
if: ${{ steps.release.outputs.release_created }}
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: bin/runpodctl-darwin-arm
asset_name: runpodctl-darwin-arm
asset_content_type: application/octet-stream

0 comments on commit 9273929

Please sign in to comment.