Compare commits

..

1 commit

Author SHA1 Message Date
ac84507e43
fix: invalid API url
I misstyped the API URL T-T
2025-03-10 23:37:35 +01:00

View file

@ -39,39 +39,39 @@ has_elements() {
# If BASE_REPORT is provided, a comparison will be made # If BASE_REPORT is provided, a comparison will be made
markdown_from_report() { markdown_from_report() {
cat <<-"EOF" cat <<-"EOF"
<!-- AUTOGENERATED by nix-flake-outputs-size action --> <!-- AUTOGENERATED by nix-flake-outputs-size action -->
# Flake output sizes # Flake output sizes
<details><summary><b>Definitions:</b></summary> <details><summary><b>Definitions:</b></summary>
- `Name`: the name of the package/configuration. - `Name`: the name of the package/configuration.
- `Size`: the closure size (size on disk/NAR size + all transitive dependencies). - `Size`: the closure size (size on disk/NAR size + all transitive dependencies).
- `NAR Size`: the size of the build output (package without the dependencies). - `NAR Size`: the size of the build output (package without the dependencies).
EOF EOF
if [ "${2+set}" = "set" ]; then if [ "${2+set}" = "set" ]; then
cat <<-"EOF" cat <<-"EOF"
- `[NAR] Size Change`: the amount changed compared to the main branch. - `[NAR] Size Change`: the amount changed compared to the main branch.
</details> </details>
EOF EOF
else else
cat <<-"EOF" cat <<-"EOF"
</details> </details>
EOF EOF
fi fi
cat <<-"EOF" cat <<-"EOF"
<details><summary><b>Tips on reading this data:</b></summary> <details><summary><b>Tips on reading this data:</b></summary>
- For NixOS configurations you generally care only about the `Size` (closure size/size on disk). - For NixOS configurations you generally care only about the `Size` (closure size/size on disk).
- Reduce the `Size` by disabling unneeded services/default packages. - Reduce the `Size` by disabling unneeded services/default packages.
- For Packages you care about both the `Size` and the `NAR Size`. - For Packages you care about both the `Size` and the `NAR Size`.
- Reduce the `NAR Size` by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc. - Reduce the `NAR Size` by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc.
- Reduce the `Size` by reducing the dependencies (e.g. `buildInputs`). - Reduce the `Size` by reducing the dependencies (e.g. `buildInputs`).
- Don't worry too much about size, some dependencies are deduplicated, e.g. `glibc` adds ~40MiB to the `Size`, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. `musl` is not gonna improve things. - Don't worry too much about size, some dependencies are deduplicated, e.g. `glibc` adds ~40MiB to the `Size`, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. `musl` is not gonna improve things.
</details> </details>
EOF EOF
if [ "${2+set}" = "set" ]; then if [ "${2+set}" = "set" ]; then