Compare commits
2 Commits
feature/bu
...
5d0f7f91d3
Author | SHA1 | Date | |
---|---|---|---|
5d0f7f91d3 | |||
297479380a |
8
.github/workflows/cache-merge.yml
vendored
8
.github/workflows/cache-merge.yml
vendored
@ -29,8 +29,6 @@ jobs:
|
||||
- name: Install nix
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- run: nix profile install nixpkgs#sqlite
|
||||
|
||||
- uses: nix-community/cache-nix-action@v6
|
||||
name: create and purge common cache
|
||||
with:
|
||||
@ -47,7 +45,6 @@ jobs:
|
||||
purge-created: 0
|
||||
# except the version with the `primary-key`, if it exists
|
||||
purge-primary-key: never
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
|
||||
- uses: nix-community/cache-nix-action@v6
|
||||
name: purge some individual caches
|
||||
@ -65,7 +62,6 @@ jobs:
|
||||
purge-created: 259200
|
||||
# except the version with the `primary-key`, if it exists
|
||||
purge-primary-key: never
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
|
||||
# Check that the `common` cache is restored correctly
|
||||
merge-similar-caches-check:
|
||||
@ -82,9 +78,7 @@ jobs:
|
||||
- name: Install nix
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- run: nix profile install nixpkgs#sqlite
|
||||
|
||||
- name: Restore Nix store
|
||||
uses: nix-community/cache-nix-action@v6
|
||||
- uses: nix-community/cache-nix-action@v6
|
||||
with:
|
||||
primary-key: similar-cache-${{ matrix.os }}-common-${{ hashFiles('flake.lock') }}
|
||||
|
12
.github/workflows/flake-health-checks.yml
vendored
12
.github/workflows/flake-health-checks.yml
vendored
@ -16,10 +16,6 @@ jobs:
|
||||
steps:
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: nix profile install nixpkgs#sqlite
|
||||
|
||||
- name: Restore Nix store
|
||||
id: restore
|
||||
uses: nix-community/cache-nix-action@v6
|
||||
@ -37,6 +33,8 @@ jobs:
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
skip-push: "true"
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: nix flake check --accept-flake-config
|
||||
|
||||
- run: nix ./utils/attic-push.bash
|
||||
@ -50,10 +48,6 @@ jobs:
|
||||
steps:
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: nix profile install nixpkgs#sqlite
|
||||
|
||||
- name: Restore Nix store
|
||||
id: restore
|
||||
uses: nix-community/cache-nix-action@v6
|
||||
@ -71,6 +65,8 @@ jobs:
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
skip-push: "true"
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build all outputs
|
||||
run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff -- --build .
|
||||
|
||||
|
2
.github/workflows/flake-update.yml
vendored
2
.github/workflows/flake-update.yml
vendored
@ -15,8 +15,6 @@ jobs:
|
||||
- name: Install nix
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- run: nix profile install nixpkgs#sqlite
|
||||
|
||||
- name: Restore Nix store
|
||||
id: restore
|
||||
uses: nix-community/cache-nix-action@v6
|
||||
|
@ -6,16 +6,10 @@
|
||||
set -e
|
||||
|
||||
# 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 \
|
||||
| jq 'map_values(.closureSize | select(true)) | to_entries | sort_by(.value)' \
|
||||
| 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')
|
||||
|
||||
|
||||
readarray -t nix_path_array < <(echo "$nix_paths")
|
||||
|
||||
batchsize=1000
|
||||
|
Reference in New Issue
Block a user