mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
another attempt at ldflags
This commit is contained in:
parent
c42bb66e96
commit
f2c6f86204
4
.github/workflows/slsa-goreleaser.yml
vendored
4
.github/workflows/slsa-goreleaser.yml
vendored
@ -20,9 +20,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- id: ldflags
|
||||
run: |
|
||||
GIT_HASH=$(git rev-list -1 HEAD)
|
||||
LD_FLAGS="-X main.GitCommit=$GIT_HASH -w -extldflags \"-static\""
|
||||
echo "::set-output name=value::$LD_FLAGS"
|
||||
echo "::set-output name=ldflags::$(./scripts/client-ldflags)"
|
||||
|
||||
# Trusted builder.
|
||||
build:
|
||||
|
4
scripts/client-ldflags
Executable file
4
scripts/client-ldflags
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
GIT_HASH=$(git rev-parse HEAD)
|
||||
echo "-X main.GitCommit=$GIT_HASH -w -extldflags \"-static\""
|
Loading…
Reference in New Issue
Block a user