From 60b69dfabb59e1e4f9bce8ea94af79b4cbf06e83 Mon Sep 17 00:00:00 2001 From: Robin Heidenis Date: Tue, 28 Nov 2023 04:42:14 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20upload=20separate=20arti?= =?UTF-8?q?facts=20for=20every=20binary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bb3434..f7586cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/ \ No newline at end of file + name: heimdall-linux-arm + path: dist/heimdall-linux-arm \ No newline at end of file