|
84 | 84 | restore-prefixes-first-match: nix-flake-${{ runner.os }}-${{ runner.arch }}- |
85 | 85 | gc-max-store-size-linux: 5G |
86 | 86 |
|
87 | | - - name: nix flake check |
88 | | - run: nix flake check --impure --no-build --all-systems |
| 87 | + - name: Flake check |
| 88 | + run: make check |
89 | 89 |
|
90 | 90 | # Tiny pre-job that decides, per kind, whether to build the full ISO or just |
91 | 91 | # instantiate the derivation, and assembles a short human title for the build |
@@ -221,39 +221,30 @@ jobs: |
221 | 221 | build_kind appliance "$APPLIANCE_FULL" |
222 | 222 | ls -lh "$dist" |
223 | 223 |
|
| 224 | + # One artifact per kind, each bundling that kind's ISO with its .sha256 |
| 225 | + # sidecar (a single upload-artifact step uploads its matched files |
| 226 | + # CONCURRENTLY, so the multi-GB ISO and its checksum go up together). |
| 227 | + # Installer and appliance stay in SEPARATE artifacts so each kind can be |
| 228 | + # downloaded on its own. Each step runs only when its kind built full. |
224 | 229 | - name: Upload installer ISO artifact |
225 | 230 | if: env.INSTALLER_FULL == 'true' |
226 | 231 | uses: actions/upload-artifact@v5 |
227 | 232 | with: |
228 | 233 | name: coder-box-installer-${{ matrix.system }} |
229 | | - path: ${{ steps.build.outputs.dist }}/coder-box-installer-*.iso |
| 234 | + path: | |
| 235 | + ${{ steps.build.outputs.dist }}/coder-box-installer-*.iso |
| 236 | + ${{ steps.build.outputs.dist }}/coder-box-installer-*.iso.sha256 |
230 | 237 | # Verification build; keep storage cost minimal. |
231 | 238 | retention-days: 1 |
232 | 239 | if-no-files-found: error |
233 | 240 |
|
234 | | - - name: Upload installer checksum artifact |
235 | | - if: env.INSTALLER_FULL == 'true' |
236 | | - uses: actions/upload-artifact@v5 |
237 | | - with: |
238 | | - name: coder-box-installer-${{ matrix.system }}-sha256 |
239 | | - path: ${{ steps.build.outputs.dist }}/coder-box-installer-*.iso.sha256 |
240 | | - retention-days: 1 |
241 | | - if-no-files-found: error |
242 | | - |
243 | 241 | - name: Upload appliance ISO artifact |
244 | 242 | if: env.APPLIANCE_FULL == 'true' |
245 | 243 | uses: actions/upload-artifact@v5 |
246 | 244 | with: |
247 | 245 | name: coder-box-appliance-${{ matrix.system }} |
248 | | - path: ${{ steps.build.outputs.dist }}/coder-box-appliance-*.iso |
249 | | - retention-days: 1 |
250 | | - if-no-files-found: error |
251 | | - |
252 | | - - name: Upload appliance checksum artifact |
253 | | - if: env.APPLIANCE_FULL == 'true' |
254 | | - uses: actions/upload-artifact@v5 |
255 | | - with: |
256 | | - name: coder-box-appliance-${{ matrix.system }}-sha256 |
257 | | - path: ${{ steps.build.outputs.dist }}/coder-box-appliance-*.iso.sha256 |
| 246 | + path: | |
| 247 | + ${{ steps.build.outputs.dist }}/coder-box-appliance-*.iso |
| 248 | + ${{ steps.build.outputs.dist }}/coder-box-appliance-*.iso.sha256 |
258 | 249 | retention-days: 1 |
259 | 250 | if-no-files-found: error |
0 commit comments