-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from DireLines/main
add linux-arm64 and android-amd64
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,11 @@ jobs: | |
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-linux-amd64 . | ||
env GOOS=linux GOARCH=arm64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-linux-arm64 . | ||
env GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-darwin-amd64 . | ||
env GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-darwin-arm64 . | ||
env GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-windows-amd64.exe . | ||
env GOOS=android GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-android-amd64.exe . | ||
- name: upload linux amd64 release binary | ||
if: ${{ steps.release.outputs.release_created }} | ||
|
@@ -45,7 +47,26 @@ jobs: | |
asset_path: bin/runpodctl-linux-amd64 | ||
asset_name: runpodctl-linux-amd64 | ||
asset_content_type: application/octet-stream | ||
|
||
- name: upload linux arm64 release binary | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: bin/runpodctl-linux-arm64 | ||
asset_name: runpodctl-linux-arm64 | ||
asset_content_type: application/octet-stream | ||
- name: upload android amd64 release binary | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: bin/runpodctl-android-arm64 | ||
asset_name: runpodctl-android-arm64 | ||
asset_content_type: application/octet-stream | ||
- name: upload darwin amd64 release binary | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: actions/[email protected] | ||
|