build for different arches as well

This commit is contained in:
Aaron Bieber 2021-01-23 08:16:05 -07:00
parent 48f2e7db93
commit 8ad96caae9

View File

@ -41,8 +41,10 @@ jobs:
- name: Build - name: Build
run: | run: |
for i in openbsd darwin linux; do for i in openbsd darwin linux; do
GOOS=${i} gover 1.16beta1 build -v -o gavin-${i} for a in amd64 arm64; do
tar -czvf gavin-${i}.tgz gavin-${i} GOOS=${i} GOARCH=${a} gover 1.16beta1 build -v -o gavin-${i}-${a}
tar -czvf gavin-${i}-${a}.tgz gavin-${i}-${a}
done
done done
- name: Create Release - name: Create Release
@ -63,8 +65,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: gavin-openbsd.tgz asset_path: gavin-openbsd-amd64.tgz
asset_name: gavin-openbsd.tgz asset_name: gavin-openbsd-amd64.tgz
asset_content_type: application/tar+gzip asset_content_type: application/tar+gzip
- name: Upload Gavin for Darwin Asset - name: Upload Gavin for Darwin Asset
id: upload-gavin-darwin id: upload-gavin-darwin
@ -73,8 +75,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: gavin-darwin.tgz asset_path: gavin-darwin-arm64.tgz
asset_name: gavin-darwin.tgz asset_name: gavin-darwin-arm64.tgz
asset_content_type: application/tar+gzip asset_content_type: application/tar+gzip
- name: Upload Organice Assets - name: Upload Organice Assets