Skip to content

Commit

Permalink
CI bugfixes for aggregating parallel archives
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fasano committed Mar 26, 2024
1 parent 604b08b commit 499134e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: build-output-${{ matrix.target }}
path: /kernels
path: kernels-latest.tar.gz

aggregate:
needs: build
Expand All @@ -51,9 +51,18 @@ jobs:
with:
path: downloaded-kernels

- name: Package all kernels into a single archive
-name: debug
run: find downloaded-kernels

- name: Combine all kernels into a single archive
run: |
tar -czvf kernels-latest.tar.gz -C downloaded-kernels .
mkdir combined-kernels
# Extract each kernels-latest.tar.gz archive
for archive in $(find downloaded-kernels -name "*.tar.gz"); do
tar -xzf "$archive" -C combined-kernels
done
# Create a new single archive from the combined content
tar -czvf kernels-latest.tar.gz -C combined-kernels .
- name: Upload the final archive
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 499134e

Please sign in to comment.