Skip to content

Commit

Permalink
test that released binaries are reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook committed Oct 24, 2022
1 parent b5e900f commit 49ab6d0
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,32 @@ jobs:
- run: |
REPO="${{ github.repository }}"
REPO_NAME="${REPO#*/}"
ORIG_BIN="dist/${REPO_NAME}_linux_amd64_v1/${REPO_NAME}"
cp dist/${REPO_NAME}_linux_amd64_v1/${REPO_NAME}" released-binary
- uses: actions/upload-artifact@v3
with:
name: released-binary
path: ./released-binary

reproduce-binary:
runs-on: ubuntu-latest
needs: release-binary
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}.x
check-latest: true
cache: true

- uses: actions/download-artifact@v3
with:
name: released-binary

- run: |
go install github.com/capnspacehook/gorepro@latest
gorepro -b=-buildmode=pie -no-go-gc $ORIG_BIN
gorepro -b=-buildmode=pie -no-go-gc released-binary
release-image:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 49ab6d0

Please sign in to comment.