Compare commits
1 commit
e56abf9f93
...
0a637165fe
Author | SHA1 | Date | |
---|---|---|---|
0a637165fe |
1 changed files with 7 additions and 7 deletions
|
@ -41,9 +41,9 @@ 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).
|
||||||
|
@ -62,7 +62,7 @@ markdown_from_report() {
|
||||||
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.
|
||||||
|
@ -79,7 +79,7 @@ markdown_from_report() {
|
||||||
compare=$(jq --slurp --from-file "${GITHUB_ACTION_PATH:-.}/compare.jq" "$1" "$2")
|
compare=$(jq --slurp --from-file "${GITHUB_ACTION_PATH:-.}/compare.jq" "$1" "$2")
|
||||||
if echo "$compare" | has_elements 'nixosConfigurations'; then
|
if echo "$compare" | has_elements 'nixosConfigurations'; then
|
||||||
cat <<-"EOF"
|
cat <<-"EOF"
|
||||||
# NixOS Configurations
|
## NixOS Configurations
|
||||||
|
|
||||||
| Name | Size | Size Change | NAR Size | NAR Size Change |
|
| Name | Size | Size Change | NAR Size | NAR Size Change |
|
||||||
|------|-----:|------------:|---------:|----------------:|
|
|------|-----:|------------:|---------:|----------------:|
|
||||||
|
@ -89,7 +89,7 @@ markdown_from_report() {
|
||||||
fi
|
fi
|
||||||
if echo "$compare" | has_elements 'packages'; then
|
if echo "$compare" | has_elements 'packages'; then
|
||||||
cat <<-"EOF"
|
cat <<-"EOF"
|
||||||
# Packages
|
## Packages
|
||||||
|
|
||||||
| Name | Size | Size Change | NAR Size | NAR Size Change |
|
| Name | Size | Size Change | NAR Size | NAR Size Change |
|
||||||
|------|-----:|------------:|---------:|----------------:|
|
|------|-----:|------------:|---------:|----------------:|
|
||||||
|
@ -100,7 +100,7 @@ markdown_from_report() {
|
||||||
else
|
else
|
||||||
if has_elements 'nixosConfigurations' "$1"; then
|
if has_elements 'nixosConfigurations' "$1"; then
|
||||||
cat <<-"EOF"
|
cat <<-"EOF"
|
||||||
# NixOS Configurations
|
## NixOS Configurations
|
||||||
|
|
||||||
| Name | Size | NAR Size |
|
| Name | Size | NAR Size |
|
||||||
|------|-----:|---------:|
|
|------|-----:|---------:|
|
||||||
|
@ -110,7 +110,7 @@ markdown_from_report() {
|
||||||
fi
|
fi
|
||||||
if has_elements 'packages' "$1"; then
|
if has_elements 'packages' "$1"; then
|
||||||
cat <<-"EOF"
|
cat <<-"EOF"
|
||||||
# Packages
|
## Packages
|
||||||
|
|
||||||
| Name | Size | NAR Size |
|
| Name | Size | NAR Size |
|
||||||
|------|-----:|---------:|
|
|------|-----:|---------:|
|
||||||
|
|
Loading…
Add table
Reference in a new issue