chore: declare 1.0.0 #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Nix CI | |
| on: ['pull_request'] | |
| concurrency: | |
| group: nix-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| flake_check: | |
| name: Run flake checks | |
| 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: Run `nix flake check` | |
| run: | | |
| nix flake check . --print-build-logs --max-jobs auto | |
| reproducible_check: | |
| name: Ensure reproducibility | |
| 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: Enter devshell | |
| uses: nicknovitski/nix-develop@v1 | |
| - name: Ensure reproducibility | |
| run: | | |
| cargo build --package staticrypt_testbin | |
| sum1=$(sha256sum target/debug/staticrypt_testbin) | |
| echo "Initial hash is $sum1" | |
| rm -rf target | |
| cargo build --package staticrypt_testbin | |
| sum2=$(sha256sum target/debug/staticrypt_testbin) | |
| echo "Second hash is $sum2" | |
| [[ "$sum1" = "$sum2" ]] || exit 1 |