workflows: build and upload test distribution
Some checks failed
Tests / Go tests (push) Failing after 55s
Nix / NixOS tests (push) Has been cancelled

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 4032b6de15
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -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: actions/upload-artifact@v4
with:
name: "dist/fortify-${{ github.ref_name }}.tar.gz"
path: "dist/fortify-${{ github.ref_name }}.tar.gz"
retention-days: 1