Skip to content

Commit

Permalink
fix: The reproducible workflow is no longer messed up because of brea…
Browse files Browse the repository at this point in the history
…king changes in the upload-artifacts step (#4575)

# Motivation
`uplaod-artifact@v4` contains a breaking change in the way artifacts are
merged. The [release
notes](https://github.com/actions/upload-artifact?tab=readme-ov-file#v4---whats-new)
describe how to merge with v4.

# Changes
- Update the way artefacts are merged
  - Note: upload-artifact@v4 has a breaking change that forces this.
- Disable mac builders
  - Mac builds are broken at the moment; this is being addressed.

# Tests
- See CI. I have added the working branch for this PR as a workflow
trigger, so the workflow run can be seen there.

# Todos

- [ ] Add entry to changelog (if necessary).
  • Loading branch information
bitdivine authored Feb 29, 2024
1 parent b579885 commit 60c5c4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/reproducible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
os:
# - macos-11
# - macos-12
- ubuntu-20.04
- ubuntu-22.04
steps:
- name: Unbork mac
run: |
Expand Down Expand Up @@ -69,12 +73,17 @@ jobs:
- name: 'Upload hashes'
uses: actions/upload-artifact@v4
with:
name: hashes
name: hashes_${{ matrix.os }}_${{ matrix.time }}
path: hashes/*.txt
compare_hashes:
runs-on: ubuntu-latest
needs: [docker_build]
steps:
- name: Merge Hashes
uses: actions/upload-artifact/merge@v4
with:
name: hashes
pattern: hashes_*
- name: Get hashes
uses: actions/download-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG-Nns-Dapp-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ proposal is successful, the changes it released will be moved from this file to
#### Fixed

* Adapted Dockerfile to the new `dfx` installation procedure.
* Adapted the docker reproducibility test to work with `upload-artifact@v4`.

#### Security

0 comments on commit 60c5c4b

Please sign in to comment.