feat(ci): generate package size report
All checks were successful
/ build (push) Successful in 1s
/ check (push) Successful in 7s
/ report-size (push) Successful in 2s

We should keep it lean c:
This commit is contained in:
Jalil David Salamé Messina 2024-12-22 00:40:18 +01:00
parent 657a877168
commit faf09c7de1
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -13,3 +13,16 @@ jobs:
- uses: https://git.salame.cl/actions/checkout@v4 - uses: https://git.salame.cl/actions/checkout@v4
- run: nix --version - run: nix --version
- run: nix flake check --keep-going --verbose --print-build-logs - run: nix flake check --keep-going --verbose --print-build-logs
report-size:
runs-on: nixos
needs: build
steps:
- uses: https://git.salame.cl/actions/checkout@v4
- run: nix --version
- name: Generate size report
uses: https://git.salame.cl/jalil/nix-flake-outputs-size@main
with:
comment-on-pr: ${{ github.ref_name != 'main' }}
generate-artifact: ${{ github.ref_name == 'main' }}
do-comparison: true
job-name: report-size