diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 568640e..14d4f7f 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -1,9 +1,11 @@ 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 @@ -11,6 +13,7 @@ jobs: run: nix flake check --keep-going --verbose build: runs-on: nixos + if: github.event_name == 'push' strategy: matrix: target: @@ -24,3 +27,12 @@ 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 deleted file mode 100644 index 1bf2a41..0000000 --- a/.forgejo/workflows/size-report.yml +++ /dev/null @@ -1,10 +0,0 @@ -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