|
59 | 59 | x86_64-darwin-small-hash: ${{ steps.hashes.outputs.x86_64-darwin-small }} |
60 | 60 | aarch64-linux-small-hash: ${{ steps.hashes.outputs.aarch64-linux-small }} |
61 | 61 | aarch64-darwin-small-hash: ${{ steps.hashes.outputs.aarch64-darwin-small }} |
| 62 | + x86_64-linux-stable-hash: ${{ steps.hashes.outputs.x86_64-linux-stable }} |
| 63 | + x86_64-darwin-stable-hash: ${{ steps.hashes.outputs.x86_64-darwin-stable }} |
| 64 | + aarch64-linux-stable-hash: ${{ steps.hashes.outputs.aarch64-linux-stable }} |
| 65 | + aarch64-darwin-stable-hash: ${{ steps.hashes.outputs.aarch64-darwin-stable }} |
| 66 | + x86_64-linux-stable-small-hash: ${{ steps.hashes.outputs.x86_64-linux-stable-small }} |
| 67 | + x86_64-darwin-stable-small-hash: ${{ steps.hashes.outputs.x86_64-darwin-stable-small }} |
| 68 | + aarch64-linux-stable-small-hash: ${{ steps.hashes.outputs.aarch64-linux-stable-small }} |
| 69 | + aarch64-darwin-stable-small-hash: ${{ steps.hashes.outputs.aarch64-darwin-stable-small }} |
62 | 70 | steps: |
63 | 71 | - uses: actions/checkout@v4 |
64 | 72 | - name: Swap space report before modification |
@@ -107,18 +115,30 @@ jobs: |
107 | 115 | run: | |
108 | 116 | nix shell --inputs-from .# nixpkgs#nix-index -c nix-index --db ./${{ matrix.system }}-index-small --system ${{matrix.system}} --filter-prefix '/bin/' 2>&1 | grep -v '+ generating index:' |
109 | 117 | mv ./${{ matrix.system }}-index-small/files ./index-${{ matrix.system }}-small |
| 118 | + - name: generate stable full nix-index database |
| 119 | + run: | |
| 120 | + nix shell --inputs-from .# nixpkgs#nix-index -c nix-index --db ./${{ matrix.system }}-index-stable --system ${{matrix.system}} --nixpkgs 'https://github.com/NixOS/nixpkgs/archive/${{ endsWith(matrix.system, '-darwin') && 'nixpkgs-25.05-darwin' || 'nixos-25.05' }}.tar.gz' 2>&1 | grep -v '+ generating index:' |
| 121 | + mv ./${{ matrix.system }}-index-stable/files ./index-${{ matrix.system }}-stable |
| 122 | + - name: generate stable small nix-index database |
| 123 | + run: | |
| 124 | + nix shell --inputs-from .# nixpkgs#nix-index -c nix-index --db ./${{ matrix.system }}-index-stable-small --system ${{matrix.system}} --nixpkgs 'https://github.com/NixOS/nixpkgs/archive/${{ endsWith(matrix.system, '-darwin') && 'nixpkgs-25.05-darwin' || 'nixos-25.05' }}.tar.gz' --filter-prefix '/bin/' 2>&1 | grep -v '+ generating index:' |
| 125 | + mv ./${{ matrix.system }}-index-stable-small/files ./index-${{ matrix.system }}-stable-small |
110 | 126 | - name: hash index |
111 | 127 | id: hashes |
112 | 128 | run: | |
113 | 129 | echo "${{ matrix.system }}=$(nix store prefetch-file "file://$PWD/index-${{ matrix.system }}" --json | jq -r .hash)" >> "$GITHUB_OUTPUT" |
114 | 130 | echo "${{ matrix.system }}-small=$(nix store prefetch-file "file://$PWD/index-${{ matrix.system }}-small" --json | jq -r .hash)" >> "$GITHUB_OUTPUT" |
| 131 | + echo "${{ matrix.system }}-stable=$(nix store prefetch-file "file://$PWD/index-${{ matrix.system }}-stable" --json | jq -r .hash)" >> "$GITHUB_OUTPUT" |
| 132 | + echo "${{ matrix.system }}-stable-small=$(nix store prefetch-file "file://$PWD/index-${{ matrix.system }}-stable-small" --json | jq -r .hash)" >> "$GITHUB_OUTPUT" |
115 | 133 | - name: add to release |
116 | 134 | uses: softprops/action-gh-release@v2 |
117 | 135 | with: |
118 | 136 | tag_name: ${{ needs.create-release.outputs.release_name }} |
119 | 137 | files: | |
120 | 138 | index-${{ matrix.system }}-small |
121 | 139 | index-${{ matrix.system }} |
| 140 | + index-${{ matrix.system }}-stable |
| 141 | + index-${{ matrix.system }}-stable-small |
122 | 142 |
|
123 | 143 |
|
124 | 144 | update-generated: |
@@ -146,6 +166,14 @@ jobs: |
146 | 166 | aarch64-linux-small = "${{ needs.index.outputs.aarch64-linux-small-hash }}"; |
147 | 167 | x86_64-darwin-small = "${{ needs.index.outputs.x86_64-darwin-small-hash }}"; |
148 | 168 | aarch64-darwin-small = "${{ needs.index.outputs.aarch64-darwin-small-hash }}"; |
| 169 | + x86_64-linux-stable = "${{ needs.index.outputs.x86_64-linux-stable-hash }}"; |
| 170 | + aarch64-linux-stable = "${{ needs.index.outputs.aarch64-linux-stable-hash }}"; |
| 171 | + x86_64-darwin-stable = "${{ needs.index.outputs.x86_64-darwin-stable-hash }}"; |
| 172 | + aarch64-darwin-stable = "${{ needs.index.outputs.aarch64-darwin-stable-hash }}"; |
| 173 | + x86_64-linux-stable-small = "${{ needs.index.outputs.x86_64-linux-stable-small-hash }}"; |
| 174 | + aarch64-linux-stable-small = "${{ needs.index.outputs.aarch64-linux-stable-small-hash }}"; |
| 175 | + x86_64-darwin-stable-small = "${{ needs.index.outputs.x86_64-darwin-stable-small-hash }}"; |
| 176 | + aarch64-darwin-stable-small = "${{ needs.index.outputs.aarch64-darwin-stable-small-hash }}"; |
149 | 177 | }; |
150 | 178 | } |
151 | 179 | EOF |
|
0 commit comments