diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml deleted file mode 100644 index e879257..0000000 --- a/.forgejo/workflows/check.yml +++ /dev/null @@ -1,26 +0,0 @@ -on: - push: -jobs: - check: - runs-on: nixos - needs: build - steps: - - uses: "https://code.forgejo.org/actions/checkout@v4" - - run: nix --version - - name: Run Checks - run: nix flake check --keep-going --verbose - build: - runs-on: nixos - strategy: - matrix: - target: - - audiomenu - - docs - - jpassmenu - - nixosConfigurations.vm.config.system.build.toplevel - - nvim - steps: - - uses: "https://code.forgejo.org/actions/checkout@v4" - - run: nix --version - - name: "Build ${{ matrix.target }}" - run: nix build --print-build-logs '.#${{ matrix.target }}' diff --git a/.forgejo/workflows/size-report.yml b/.forgejo/workflows/size-report.yml index 7e80447..1bf2a41 100644 --- a/.forgejo/workflows/size-report.yml +++ b/.forgejo/workflows/size-report.yml @@ -3,7 +3,6 @@ on: jobs: report-size: runs-on: nixos - needs: build steps: - uses: "https://git.salame.cl/actions/checkout@v4" - run: nix --version diff --git a/ci-scripts/report-size.sh b/ci-scripts/report-size.sh index 2eb9ed0..420f844 100755 --- a/ci-scripts/report-size.sh +++ b/ci-scripts/report-size.sh @@ -26,9 +26,8 @@ package_size_table() { for package in $packages; do echo "Building $package" >&2 path=$(nix build --print-out-paths ".#$package" 2>/dev/null) - echo "Calculating size of $package" >&2 row=$(nix path-info --size --closure-size --human-readable "$path" 2>/dev/null | - sed "s/^\(\S\+\)\(\s\+\)\(\S\+\)\(\s\+\)\(\S\+\)$/| \`$package\` | \3 | \5 |/") + sed "s/^\(\S\+\)\(\s\+\)\(\S\+\)\(\s\+\)\(\S\+\)$/| $package | \3 | \4\5 |/") table="$table$row " done @@ -43,9 +42,8 @@ configuration_size_table() { for config in $configurations; do echo "Building $config" >&2 path=$(nix build --print-out-paths ".#nixosConfigurations.$config.config.system.build.toplevel" 2>/dev/null) - echo "Calculating size of $config" >&2 row=$(nix path-info --size --closure-size --human-readable "$path" 2>/dev/null | - sed "s/^\(\S\+\)\(\s\+\)\(\S\+\)\(\s\+\)\(\S\+\)$/| \`$config\` | \3 | \5 |/") + sed "s/^\(\S\+\)\(\s\+\)\(\S\+\)\(\s\+\)\(\S\+\)$/| $config | \3 | \4 |/") table="$table$row " done