Skip to content

Commit 7da3b01

Browse files
authored
ci: Rather than 1 giant ZIP file, make 1 ZIP file per subdir (#3461)
For test artifacts, as the 1 test artifacts ZIP was over 2 GB in size due to all of the variants, which are, for 2.1 right now: ``` caliptra-bitstream-fpga-realtime-latest-itrng-log/ caliptra-bitstream-fpga-realtime-latest-itrng-nolog/ caliptra-bitstream-fpga-subsystem-realtime-latest-itrng-log-/ caliptra-bitstream-fpga-subsystem-realtime-latest-itrng-log-ocp-lock/ caliptra-bitstream-fpga-subsystem-realtime-latest-itrng-nolog-/ caliptra-bitstream-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock/ caliptra-test-binaries-fpga-realtime-latest-itrng-log/ caliptra-test-binaries-fpga-realtime-latest-itrng-nolog/ caliptra-test-binaries-fpga-subsystem-realtime-latest-itrng-log-/ caliptra-test-binaries-fpga-subsystem-realtime-latest-itrng-log-ocp-lock/ caliptra-test-binaries-fpga-subsystem-realtime-latest-itrng-nolog-/ caliptra-test-binaries-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock/ caliptra-test-firmware-fpga-realtime-latest-itrng-log/ caliptra-test-firmware-fpga-realtime-latest-itrng-nolog/ caliptra-test-firmware-fpga-subsystem-realtime-latest-itrng-log-/ caliptra-test-firmware-fpga-subsystem-realtime-latest-itrng-log-ocp-lock/ caliptra-test-firmware-fpga-subsystem-realtime-latest-itrng-nolog-/ caliptra-test-firmware-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock/ caliptra-test-results-fpga-realtime-latest-itrng-log-1/ caliptra-test-results-fpga-realtime-latest-itrng-log-2/ caliptra-test-results-fpga-realtime-latest-itrng-nolog-1/ caliptra-test-results-fpga-realtime-latest-itrng-nolog-2/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log--1/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log--2/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log--3/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log--4/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log-ocp-lock-1/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log-ocp-lock-2/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log-ocp-lock-3/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-log-ocp-lock-4/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog--1/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog--2/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog--3/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog--4/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock-1/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock-2/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock-3/ caliptra-test-results-fpga-subsystem-realtime-latest-itrng-nolog-ocp-lock-4/ caliptra-test-results-sw-emulator-hw-latest-etrng-log/ caliptra-test-results-sw-emulator-hw-latest-etrng-nolog/ caliptra-test-results-sw-emulator-hw-latest-itrng-log/ caliptra-test-results-sw-emulator-hw-latest-itrng-nolog/ ```
1 parent 34cf8f1 commit 7da3b01

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/nightly-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,17 @@ jobs:
178178
with:
179179
path: /tmp/artifacts
180180

181-
- name: Package all test artifacts for release
181+
- name: Package test artifacts per artifact directory
182182
run: |
183-
(cd /tmp/artifacts && zip -r - .) > ./release/test_artifacts_${{ needs.find-latest-release-2-x.outputs.new_release_tag }}.zip
183+
TAG="${{ needs.find-latest-release-2-x.outputs.new_release_tag }}"
184+
cd /tmp/artifacts
185+
ls -lh
186+
du -sh .
187+
for dir in */; do
188+
dirname="${dir%/}"
189+
echo "Zipping ${dirname}"
190+
zip -qr "$GITHUB_WORKSPACE/release/test_artifacts_${TAG}_${dirname}.zip" "$dirname"
191+
done
184192
185193
- name: Tag repo with new release number
186194
run: |
@@ -194,7 +202,7 @@ jobs:
194202
with:
195203
files: |
196204
./release/caliptra_${{ needs.find-latest-release-2-x.outputs.new_release_tag }}.zip
197-
./release/test_artifacts_${{ needs.find-latest-release-2-x.outputs.new_release_tag }}.zip
205+
./release/test_artifacts_*.zip
198206
tag_name: ${{ needs.find-latest-release-2-x.outputs.new_release_tag }}
199207
prerelease: true
200208
# Release as draft. Since immutable releases are enabled we must first create a release as draft so we can upload artifacts and then tag it.

0 commit comments

Comments
 (0)