Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
trombik committed Oct 14, 2024
1 parent 629c761 commit 2e74c55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/poudriere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
set -x
set -e
df -h -tufs
poudriere ports -l
poudriere jail -l
Expand All @@ -78,6 +79,7 @@ jobs:
PORTS_NAME="default"
OVERLAY_DIR=`realpath .`
PORT_TO_BUILD=${{ matrix.PORT }}
MAX_JOBS=1
# avoid "fatal: detected dubious ownership in repository at ..."
sudo chown -R root:wheel "${OVERLAY_DIR}"
Expand All @@ -90,12 +92,14 @@ jobs:
# PACKAGE_FETCH_URL (-b). Test the port with Q/A checks (-Ct). use
# `true` to prevent failure on build failures. the job will fail
# later if any build fails. limit the number of job to 2.
sudo poudriere bulk -j "${JAIL_NAME}" -O overlay -b latest -J 2 -Ct ${PORT_TO_BUILD} || true
sudo poudriere bulk -j "${JAIL_NAME}" -O overlay -b latest -J "${MAX_JOBS}" -Ct ${PORT_TO_BUILD} || true
# collect the logs. freebsd-vm will copy them back to the host OS.
tree "/usr/local/poudriere/data/logs/bulk/${JAIL_NAME}-${PORTS_NAME}/latest/logs"
sudo cp -R "/usr/local/poudriere/data/logs/bulk/${JAIL_NAME}-${PORTS_NAME}/latest/logs" ${OVERLAY_DIR}/logs
df -h -tufs
- name: Create a safe port name from matrix.PORT
shell: sh
run: |
Expand Down

0 comments on commit 2e74c55

Please sign in to comment.