Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions .github/workflows/nix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ jobs:
run: |
nix flake check . --print-build-logs --max-jobs auto

nix_reproducible_check:
name: Ensure reproducibility (Nix)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: cachix/install-nix-action@v27

- uses: cachix/cachix-action@v14
with:
name: naxdy-foss
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Build testbin twice
run: |
nix build .#staticrypt-testbin --print-build-logs -j auto

nix build .#staticrypt-testbin --print-build-logs -j auto --rebuild

reproducible_check:
name: Ensure reproducibility
runs-on: ubuntu-latest
Expand All @@ -44,17 +64,17 @@ jobs:

- name: Ensure reproducibility
run: |
cargo build --package staticrypt_testbin
cargo build --package staticrypt-testbin

sum1=$(sha256sum target/debug/staticrypt_testbin)
sum1=$(sha256sum target/debug/staticrypt-testbin)

echo "Initial hash is $sum1"

rm -rf target

cargo build --package staticrypt_testbin
cargo build --package staticrypt-testbin

sum2=$(sha256sum target/debug/staticrypt_testbin)
sum2=$(sha256sum target/debug/staticrypt-testbin)

echo "Second hash is $sum2"

Expand Down
Loading