From e2edeb7cdb673e1ecc83357a978b26af59034d89 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 18 Dec 2024 19:57:03 +0900 Subject: [PATCH] workflows: build and upload test distribution Signed-off-by: Ophestra Umiker --- .gitea/workflows/test.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 1a74d50..76ad559 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -44,13 +44,12 @@ jobs: run: >- go test ./... - - name: Build for Linux - run: >- - go build -v -ldflags '-s -w - -X git.ophivana.moe/security/fortify/internal.Version=${{ github.ref_name }} - -X git.ophivana.moe/security/fortify/internal.Fsu=/usr/bin/fsu - -X git.ophivana.moe/security/fortify/internal.Finit=/usr/libexec/fortify/finit - -X main.Fmain=/usr/bin/fortify - -X main.Fshim=/usr/libexec/fortify/fshim' - -o bin/ ./... && - (cd bin && sha512sum --tag -b * > sha512sums) + - name: Build for test + run: FORTIFY_VERSION='${{ github.ref_name }}' ./dist/release.sh + + - name: Upload test build + uses: https://gitea.com/actions/upload-artifact@v4 + with: + name: "dist/fortify-${{ github.ref_name }}.tar.gz" + path: "dist/fortify-${{ github.ref_name }}.tar.gz" + retention-days: 1