Skip to content

Commit

Permalink
ci: reproducible builds test on artifacts v2 (#2801)
Browse files Browse the repository at this point in the history
* ci: test download-artifacts@v4 for reproducible builds test

* ci: reproducible builds test: use unique artifact names and patterns
  • Loading branch information
malt3 authored Jan 5, 2024
1 parent 8e8e861 commit c936ec5
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/reproducible-builds.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Build Constellation CLI and check for reproducible builds
# Build Constellation CLI + OS images and check for reproducible builds
name: Reproducible Builds

on:
Expand Down Expand Up @@ -53,15 +53,15 @@ jobs:
run: shasum -a 256 "${binary}" | tee "${binary}.sha256"

- name: Upload binary artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: "binaries-${{ matrix.target }}"
name: "binaries-${{ matrix.target }}-${{ matrix.runner }}"
path: "${{ env.binary }}"

- name: Upload hash artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: "sha256sums"
name: "sha256sums-${{ matrix.target }}-${{ matrix.runner }}"
path: "${{ env.binary }}.sha256"

build-osimages:
Expand Down Expand Up @@ -109,15 +109,15 @@ jobs:
run: shasum -a 256 "${binary}" | tee "${binary}.sha256"

- name: Upload binary artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: "osimages-${{ matrix.target }}"
name: "osimages-${{ matrix.target }}-${{ matrix.runner }}"
path: "${{ env.binary }}"

- name: Upload hash artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: "sha256sums"
name: "sha256sums-${{ matrix.target }}-${{ matrix.runner }}"
path: "${{ env.binary }}.sha256"

compare-binaries:
Expand All @@ -138,9 +138,10 @@ jobs:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}

- name: Download binaries
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 # v4.1.0
with:
name: "binaries-${{ matrix.target }}"
pattern: "binaries-${{ matrix.target }}-*"
merge-multiple: true

- name: Hash
shell: bash
Expand Down Expand Up @@ -171,9 +172,10 @@ jobs:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}

- name: Download os images
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 # v4.1.0
with:
name: "osimages-${{ matrix.target }}"
pattern: "osimages-${{ matrix.target }}-*"
merge-multiple: true

- name: Hash
shell: bash
Expand Down

0 comments on commit c936ec5

Please sign in to comment.