Build #8
Workflow file for this run
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
name: Build | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ["1.21"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
- name: Build ARM64 | |
run: GOOS=linux GOARCH=arm64 go build -o vitoagent_arm64 ./cmd/agent.go | |
- name: Build ARM | |
run: GOOS=linux GOARCH=arm go build -o vitoagent_arm ./cmd/agent.go | |
- name: Build AMD64 | |
run: GOOS=linux GOARCH=amd64 go build -o vitoagent_amd64 ./cmd/agent.go | |
- name: Build AMD | |
run: GOOS=linux GOARCH=386 go build -o vitoagent_amd ./cmd/agent.go | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./vitoagent_arm64 | |
asset_name: vitoagent_arm64 | |
asset_content_type: application/octet-stream | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./vitoagent_arm | |
asset_name: vitoagent_arm | |
asset_content_type: application/octet-stream | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./vitoagent_amd64 | |
asset_name: vitoagent_amd64 | |
asset_content_type: application/octet-stream | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./vitoagent_amd | |
asset_name: vitoagent_amd | |
asset_content_type: application/octet-stream |