···1818 - name: Nix Cache
1919 uses: DeterminateSystems/magic-nix-cache-action@main
20202121- - name: Check
2121+ - name: Build Cmprss
2222+ run: nix build
2323+2424+ # Runs all the other checks: formatting, building docs, clippy, etc.
2525+ - name: Nix Flake Checks
2226 # Run 1 at a time and print all the log files
2327 run: nix flake check --max-jobs 1 -L
24282525- # This should really be a noop since the package is built in the checks
2626- - name: Build
2727- run: nix build
2828-2929- # This should really be a noop since the package is already built
3030- # This is run to get the coverage file linked in result/lcov.info
2929+ # If everything is successful so far, build and run test coverage
3130 - name: Build Coverage
3232- run: nix build -L .#checks.x86_64-linux.cmprss-tarpaulin
3131+ run: nix build -L .#coverage
33323433 # Upload code coverage
3534 - name: Upload coverage to Codecov
···3736 with:
3837 token: ${{ secrets.CODECOV_TOKEN }}
3938 file: ./result/lcov.info
3939+4040+ # Run the security audit
4141+ - name: Security Audit
4242+ run: nix build .#audit