Skip to content

Commit

Permalink
CI: Optimize packaging in workflow
Browse files Browse the repository at this point in the history
Add garbage collector and compress package before sending to Artifactory
Switched from tar gzip to 7z

Signed-off-by: Jakub Ciesla <[email protected]>
  • Loading branch information
jaci-nordic authored and DatGizmo committed Sep 20, 2024
1 parent 125d58f commit 19ef51b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/src-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ jobs:
with:
git-fetch-depth: 0
path: workspace/nrf
west-update-args: '--group-filter=+babblesim,+sidewalk'

- name: Create tar
run: >
tar -C ./workspace -cvf src.tar.gz .
- name: Configure git and run garbage collection
run: |
cd workspace/nrf
git config --global pack.windowMemory "32m" &&
west forall -c 'git gc --prune --aggressive'
- name: Create tar and compress workspace
run: |
7z a -t7z src.7z ./workspace/*
- name: Set up JFrog CLI
uses: jfrog/setup-jfrog-cli@v4
Expand Down

0 comments on commit 19ef51b

Please sign in to comment.