Skip to content

Commit

Permalink
[no ci] test different checksums - should fail
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Oct 31, 2024
1 parent a41cce6 commit 70a2682
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/e2e_runtime-reproducibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ jobs:
- name: Build
id: build
run: |
nix build .#${{ matrix.build-target }} --option substituters https://cache.nixos.org --builders ""
reference_checksum="$(jq -r '.manifests[0].digest' result/index.json)"
echo "$reference_checksum" > ${{ matrix.build-target }}-${{ matrix.os }}-reference_checksum.txt
# nix build .#${{ matrix.build-target }} --option substituters https://cache.nixos.org --builders ""
# reference_checksum="$(jq -r '.manifests[0].digest' result/index.json)"
tr -dc A-Za-z0-9 </dev/urandom | head -c 16 > ${{ matrix.build-target }}-${{ matrix.os }}-reference_checksum.txt
nix build .#${{ matrix.build-target }} --rebuild --option substituters https://cache.nixos.org --builders "" -o rebuild
rebuild_checksum="$(jq -r '.manifests[0].digest' rebuild/index.json)"
echo "$rebuild_checksum" > ${{ matrix.build-target }}-${{ matrix.os }}-rebuild_checksum.txt
# nix build .#${{ matrix.build-target }} --rebuild --option substituters https://cache.nixos.org --builders "" -o rebuild
# rebuild_checksum="$(jq -r '.manifests[0].digest' rebuild/index.json)"
tr -dc A-Za-z0-9 </dev/urandom | head -c 16 > ${{ matrix.build-target }}-${{ matrix.os }}-rebuild_checksum.txt
- name: Upload Build Artifacts
if: ${{false}}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: ${{ matrix.build-target }}-${{ matrix.os }}
path: result
- name: Upload Build Artifacts (Rebuild)
if: ${{false}}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: ${{ matrix.build-target }}-${{ matrix.os }}-rebuild
Expand Down

0 comments on commit 70a2682

Please sign in to comment.