Skip to content

chore: update it/ipa_codes.txt #74

chore: update it/ipa_codes.txt

chore: update it/ipa_codes.txt #74

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: {}
jobs:
reproducibility:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# goreleaser and the Go version stamp read the git history
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7
with:
version: v2.15.2
install-only: true
- name: Build the release artifact with goreleaser
run: goreleaser build --snapshot --clean --single-target -o /tmp/goreleaser-build
- name: Rebuild from source and compare digests
run: |
cp -a . /tmp/src-elsewhere
cd /tmp/src-elsewhere
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOAMD64=v1 \
go build -trimpath \
-ldflags="-s -w -buildid=" \
-o /tmp/plain-build ./publiccode-parser
sha256sum /tmp/goreleaser-build /tmp/plain-build
cmp /tmp/goreleaser-build /tmp/plain-build \
&& echo "Reproducible build confirmed"
env:
TZ: UTC