diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-12-18 19:57:03 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-12-18 20:28:35 +0900 |
| commit | 6e87fc02ddd8a90b79c3a6353889348033f082f8 (patch) | |
| tree | aaaadd0ded9c240f738e882fbb0db4032065fefb /.gitea | |
| parent | 52f21a19f3230e62387bebb88d45d51b6375ac8d (diff) | |
workflows: build and upload test distribution
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to '.gitea')
| -rw-r--r-- | .gitea/workflows/test.yml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 1a74d507..226f296f 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -44,13 +44,16 @@ jobs: run: >- go test ./... - - name: Build for Linux + - name: Build for test + id: build-test 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) + FORTIFY_VERSION="$(git rev-parse --short HEAD)" + bash -c './dist/release.sh && + echo "rev=$FORTIFY_VERSION" >> $GITHUB_OUTPUT' + + - name: Upload test build + uses: actions/upload-artifact@v3 + with: + name: "fortify-${{ steps.build-test.outputs.rev }}" + path: dist/fortify-* + retention-days: 1 |
