ci(installer-iso): move --logfile out of --resultdir
Some checks failed
Build veilor-os Installer ISO / Build installer ISO (push) Failing after 38s
Some checks failed
Build veilor-os Installer ISO / Build installer ISO (push) Failing after 38s
livemedia-creator pre-creates the parent dir of --logfile before checking that --resultdir doesn't exist. Putting the log inside resultdir made the dir 'exist' before the check ran. Move logfile to /tmp. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
2a95502898
commit
58cd6c2d84
1 changed files with 5 additions and 1 deletions
6
.github/workflows/build-installer-iso.yml
vendored
6
.github/workflows/build-installer-iso.yml
vendored
|
|
@ -71,6 +71,9 @@ jobs:
|
||||||
mkdir -p "$TMPD"
|
mkdir -p "$TMPD"
|
||||||
ln -sfn "$GITHUB_WORKSPACE" /work
|
ln -sfn "$GITHUB_WORKSPACE" /work
|
||||||
ls -ld "$OUT" 2>&1 || echo "[OK] $OUT does not exist (expected)"
|
ls -ld "$OUT" 2>&1 || echo "[OK] $OUT does not exist (expected)"
|
||||||
|
# IMPORTANT: --logfile MUST NOT live under --resultdir; livemedia
|
||||||
|
# pre-creates the parent before checking resultdir doesn't exist.
|
||||||
|
LOGFILE=/tmp/livemedia-$$.log
|
||||||
livemedia-creator \
|
livemedia-creator \
|
||||||
--make-iso \
|
--make-iso \
|
||||||
--no-virt \
|
--no-virt \
|
||||||
|
|
@ -80,10 +83,11 @@ jobs:
|
||||||
--volid "veilor-os-installer-${RELEASEVER}" \
|
--volid "veilor-os-installer-${RELEASEVER}" \
|
||||||
--project "veilor-os" \
|
--project "veilor-os" \
|
||||||
--releasever "$RELEASEVER" \
|
--releasever "$RELEASEVER" \
|
||||||
--logfile "$OUT/build.log" \
|
--logfile "$LOGFILE" \
|
||||||
2>&1 | tee /tmp/build.log
|
2>&1 | tee /tmp/build.log
|
||||||
mkdir -p build/out
|
mkdir -p build/out
|
||||||
cp -a "$OUT"/. build/out/
|
cp -a "$OUT"/. build/out/
|
||||||
|
cp -a "$LOGFILE" build/out/livemedia.log 2>/dev/null || true
|
||||||
cp -a /tmp/build.log build/out/build.log 2>/dev/null || true
|
cp -a /tmp/build.log build/out/build.log 2>/dev/null || true
|
||||||
ls -lh build/out/
|
ls -lh build/out/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue