on: [push] jobs: build: runs-on: nixos steps: - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - run: nix --version - name: Build Package run: | nix build --print-build-logs .# checks: needs: build # we use the built binaries in the checks runs-on: nixos strategy: matrix: system: - x86_64-linux test: - treefmt - clippy - deny - nextest - module-ipv4-only-test - module-ipv4-test - module-ipv6-only-test - module-ipv6-test - module-nginx-test env: TEST: ${{ matrix.test }} SYSTEM: ${{ matrix.system }} steps: - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - run: nix --version - name: Run tests run: | nix build --print-build-logs \ .#checks."$SYSTEM"."$TEST" report-size: runs-on: nixos needs: build steps: - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - run: nix --version - name: Generate size report uses: "https://git.salame.cl/jalil/nix-flake-outputs-size@e5d1a0751adb4963c0a4982503806ae5f19f52da" # main with: comment-on-pr: ${{ github.ref_name != 'main' }} generate-artifact: ${{ github.ref_name == 'main' }} do-comparison: true job-name: report-size