Skip to content

Commit

Permalink
ci: upload built packages only
Browse files Browse the repository at this point in the history
`packages` dir on host still has downloaded packages cache. remove them
before uploading.
  • Loading branch information
trombik committed Oct 27, 2024
1 parent 2551028 commit 588a691
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/poudriere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
PORT_TO_BUILD=${{ matrix.PORT }}
CCACHE_DIR=/var/cache/ccache
SCCACHE_DIR="${CCACHE_DIR}/sccache"
PACKAGES_BUILT_DIR="${OVERLAY_DIR}/packages.built"
# disable tmpfs to save memory
echo USE_TMPFS=no | sudo tee -a /usr/local/etc/poudriere.conf
Expand Down Expand Up @@ -255,8 +256,8 @@ jobs:
sudo cp -R "/usr/local/poudriere/data/logs/bulk/${JAIL_NAME}-${PORTS_NAME}/latest/logs" ${OVERLAY_DIR}/logs
# collect the built packages
sudo cp -RL "/usr/local/poudriere/data/packages/${JAIL_NAME}-${PORTS_NAME}/All" "${OVERLAY_DIR}/packages"
tree packages
sudo cp -RL "/usr/local/poudriere/data/packages/${JAIL_NAME}-${PORTS_NAME}/All" "${PACKAGES_BUILT_DIR}"
tree "${PACKAGES_BUILT_DIR}"
# collect ccache cache
echo "===> ccache statistic after build"
Expand Down Expand Up @@ -290,6 +291,14 @@ jobs:
name: logs-${{ env.SAFE_PORT_NAME }}
path: logs/

- name: rename packages.built to packages
shell: sh
run: |
rm -rf packages
if [ -d packages.built ]; then
mv packages.built packages
fi
- name: upload packages
id: packages-upload-step

Expand Down

0 comments on commit 588a691

Please sign in to comment.