Add ZIP 256: Deployment of Consensus Bug Fixes Between NU6.1 and NU6.2 #1116
Workflow file for this run
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: Check Renderability | |
| on: | |
| pull_request: | |
| jobs: | |
| render: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 3 | |
| - name: Verify nonexistence of `rendered` and `base_ref` | |
| shell: bash | |
| run: | | |
| if [ -e rendered ]; then exit 1; fi | |
| if [ -e base_ref ]; then exit 1; fi | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 | |
| - name: Restore Nix store cache | |
| id: nix-cache | |
| uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0 | |
| with: | |
| path: /tmp/nix-closure | |
| key: nix-devshell-${{ runner.os }}-${{ hashFiles('flake.lock', 'flake.nix') }} | |
| - name: Import cached Nix store paths | |
| if: steps.nix-cache.outputs.cache-hit == 'true' | |
| run: nix-store --import < /tmp/nix-closure/store.nar | |
| - name: Compile ZIPs | |
| run: nix develop --profile /tmp/dev-profile --command make all-zips | |
| - name: Render regression tests | |
| run: nix develop --profile /tmp/dev-profile --command make test | |
| - name: Set base ref | |
| run: | | |
| git show --format=%H --no-notes --no-patch "HEAD~1" -- |tee base_ref | |
| if ! ( grep -E '^[0-9a-f]{40}$' base_ref ); then exit 1; fi | |
| - name: Compile Protocol Specification | |
| run: nix develop --profile /tmp/dev-profile --command make all | |
| - name: Export Nix store for caching | |
| if: steps.nix-cache.outputs.cache-hit != 'true' | |
| run: | | |
| # Free up some space before creating the (possibly very large) store tarball. | |
| df | |
| dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn 2>/dev/null | head -30 | |
| docker system prune --all --force || /bin/true | |
| sudo apt-get -y remove --purge \ | |
| '^docker.*' '^microsoft-edge.*' azure-cli '^google-cloud-cli.*' '^google-chrome.*' \ | |
| firefox java-common '^llvm-.*' '^libllvm.*' '^libclang-.*' '^mysql-.*' powershell snapd | |
| sudo apt-get -y autoremove --purge | |
| dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn 2>/dev/null | head -30 | |
| df | |
| mkdir -p /tmp/nix-closure | |
| nix-store --export $(nix-store -qR /tmp/dev-profile) > /tmp/nix-closure/store.nar |