-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c11c70d
commit b8c4f55
Showing
2 changed files
with
25 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build | ||
run-name: Build heimdall for ${{ github.actor }} on ${{ github.base.ref }} | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
- 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: Build heimdall for linux/arm64 | ||
run: GOOS=linux GOARCH=arm64 go build -o dist/heimdall-linux-arm64 ./cmd/heimdall | ||
- 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 | ||
with: | ||
name: heimdall-binaries | ||
path: dist/ |