Skip to content

Commit

Permalink
feat: 🎸 upload separate artifacts for every binary
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinHeidenis committed Nov 28, 2023
1 parent a2bc8ec commit 60b69df
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,27 @@ jobs:
go-version: 1.21.4
- name: Install dependencies
run: go mod download

- name: Build heimdall for linux/amd64
run: GOOS=linux GOARCH=amd64 go build -o dist/heimdall-linux-amd64 ./cmd/heimdall
- name: Upload heimdall for linux/amd64
uses: actions/upload-artifact@v3
with:
name: heimdall-linux-amd64
path: dist/heimdall-linux-amd64

- name: Build heimdall for linux/arm64
run: GOOS=linux GOARCH=arm64 go build -o dist/heimdall-linux-arm64 ./cmd/heimdall
- name: Upload heimdall for linux/arm64
uses: actions/upload-artifact@v3
with:
name: heimdall-linux-arm64
path: dist/heimdall-linux-arm64

- name: Build heimdall for linux/arm
run: GOOS=linux GOARCH=arm go build -o dist/heimdall-linux-arm ./cmd/heimdall
- name: Upload binary
uses: actions/upload-artifact@v2
- name: Upload heimdall for linux/arm
uses: actions/upload-artifact@v3
with:
name: heimdall-binaries
path: dist/
name: heimdall-linux-arm
path: dist/heimdall-linux-arm

0 comments on commit 60b69df

Please sign in to comment.