diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 14d4f7f..568640e 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -1,11 +1,9 @@ on: push: - pull_request: jobs: check: runs-on: nixos needs: build - if: github.event_name == 'push' steps: - uses: "https://code.forgejo.org/actions/checkout@v4" - run: nix --version @@ -13,7 +11,6 @@ jobs: run: nix flake check --keep-going --verbose build: runs-on: nixos - if: github.event_name == 'push' strategy: matrix: target: @@ -27,12 +24,3 @@ jobs: - run: nix --version - name: Build target run: nix build --print-build-logs '.#${{ matrix.target }}' - report-size: - runs-on: nixos - needs: build - if: github.event_name == 'pull_request' - steps: - - uses: "https://git.salame.cl/actions/checkout@v4" - - run: nix --version - - name: Report Size - run: ci-scripts/report-size.sh diff --git a/.forgejo/workflows/size-report.yml b/.forgejo/workflows/size-report.yml new file mode 100644 index 0000000..1bf2a41 --- /dev/null +++ b/.forgejo/workflows/size-report.yml @@ -0,0 +1,10 @@ +on: + pull_request: +jobs: + report-size: + runs-on: nixos + steps: + - uses: "https://git.salame.cl/actions/checkout@v4" + - run: nix --version + - name: Report Size + run: ci-scripts/report-size.sh