Skip to content

Commit

Permalink
add workflow to check that binaries are reproducible (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook authored Sep 25, 2023
1 parent db4da78 commit 8a09d87
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/reproduce-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Reproduce binary

on:
push:
branches:
- master
pull_request:
branches:
- "*"

workflow_dispatch: {}

jobs:
reproduce-binary:
permissions:
contents: read
uses: capnspacehook/go-workflows/.github/workflows/reproduce-binary.yml@master
with:
extra-build-flags: "-ldflags=-s -w -X main.version=devel"
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -s -w -X "main.version={{ .Tag }}"
- '-s -w -X main.version={{ if eq .Tag "v0.0.0" }}devel{{ else }}{{ .Tag }}{{ end }}'
main: ./cmd/egress-eddie

archives:
Expand Down

0 comments on commit 8a09d87

Please sign in to comment.