Merge pull request 'feature/build-cache' (#35) from feature/build-cache into main
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Successful in 8m41s
Check Nix flake / Build nix outputs (ubuntu-latest) (push) Successful in 1h40m13s
Check flake.lock / Check health of `flake.lock` (push) Successful in 15s
Check Nix formatting / Perform Nix format checks (push) Successful in 2m35s
Nix CI / Merge similar caches (ubuntu-latest) (push) Failing after 41s
Nix CI / Check a `common` cache is restored correctly (ubuntu-latest) (push) Has been skipped
Update flakes / update_lockfile (push) Failing after 9m54s
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Successful in 8m41s
Check Nix flake / Build nix outputs (ubuntu-latest) (push) Successful in 1h40m13s
Check flake.lock / Check health of `flake.lock` (push) Successful in 15s
Check Nix formatting / Perform Nix format checks (push) Successful in 2m35s
Nix CI / Merge similar caches (ubuntu-latest) (push) Failing after 41s
Nix CI / Check a `common` cache is restored correctly (ubuntu-latest) (push) Has been skipped
Update flakes / update_lockfile (push) Failing after 9m54s
This commit is contained in:
commit
4b263206dd
8
.github/workflows/flake-health-checks.yml
vendored
8
.github/workflows/flake-health-checks.yml
vendored
@ -16,6 +16,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Restore Nix store
|
- name: Restore Nix store
|
||||||
id: restore
|
id: restore
|
||||||
uses: nix-community/cache-nix-action@v6
|
uses: nix-community/cache-nix-action@v6
|
||||||
@ -33,8 +35,6 @@ jobs:
|
|||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
skip-push: "true"
|
skip-push: "true"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- run: nix flake check --accept-flake-config
|
- run: nix flake check --accept-flake-config
|
||||||
|
|
||||||
- run: nix ./utils/attic-push.bash
|
- run: nix ./utils/attic-push.bash
|
||||||
@ -48,6 +48,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Restore Nix store
|
- name: Restore Nix store
|
||||||
id: restore
|
id: restore
|
||||||
uses: nix-community/cache-nix-action@v6
|
uses: nix-community/cache-nix-action@v6
|
||||||
@ -65,8 +67,6 @@ jobs:
|
|||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
skip-push: "true"
|
skip-push: "true"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Build all outputs
|
- name: Build all outputs
|
||||||
run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff -- --build .
|
run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff -- --build .
|
||||||
|
|
||||||
|
@ -6,10 +6,16 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# retrieve all paths under 2G
|
# retrieve all paths under 2G
|
||||||
|
# nix_paths=$(nix path-info --json --all --closure-size \
|
||||||
|
# | jq 'map_values(.closureSize | select(. < 2e9)) | to_entries | sort_by(.value)' \
|
||||||
|
# | jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
|
||||||
|
|
||||||
|
# retrieve all paths
|
||||||
nix_paths=$(nix path-info --json --all --closure-size \
|
nix_paths=$(nix path-info --json --all --closure-size \
|
||||||
| jq 'map_values(.closureSize | select(. < 2e9)) | to_entries | sort_by(.value)' \
|
| jq 'map_values(.closureSize | select(true)) | to_entries | sort_by(.value)' \
|
||||||
| jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
|
| jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
|
||||||
|
|
||||||
|
|
||||||
readarray -t nix_path_array < <(echo "$nix_paths")
|
readarray -t nix_path_array < <(echo "$nix_paths")
|
||||||
|
|
||||||
batchsize=1000
|
batchsize=1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user