workflows: build and upload test distribution
All checks were successful
Tests / Go tests (push) Successful in 43s
Nix / NixOS tests (push) Successful in 5m33s

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra 2024-12-18 19:57:03 +09:00
parent 52f21a19f3
commit 6e87fc02dd
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -44,13 +44,16 @@ jobs:
run: >- run: >-
go test ./... go test ./...
- name: Build for Linux - name: Build for test
id: build-test
run: >- run: >-
go build -v -ldflags '-s -w FORTIFY_VERSION="$(git rev-parse --short HEAD)"
-X git.ophivana.moe/security/fortify/internal.Version=${{ github.ref_name }} bash -c './dist/release.sh &&
-X git.ophivana.moe/security/fortify/internal.Fsu=/usr/bin/fsu echo "rev=$FORTIFY_VERSION" >> $GITHUB_OUTPUT'
-X git.ophivana.moe/security/fortify/internal.Finit=/usr/libexec/fortify/finit
-X main.Fmain=/usr/bin/fortify - name: Upload test build
-X main.Fshim=/usr/libexec/fortify/fshim' uses: actions/upload-artifact@v3
-o bin/ ./... && with:
(cd bin && sha512sum --tag -b * > sha512sums) name: "fortify-${{ steps.build-test.outputs.rev }}"
path: dist/fortify-*
retention-days: 1