Compare commits

...

2 Commits

Author SHA1 Message Date
d1f429d8e4 Merge pull request 'fix(ci): replace heredoc with printf in arm64 install step' (#11) from fix/yaml-heredoc-indent into master
Some checks failed
Auto Tag / autotag (push) Successful in 1m22s
Auto Tag / wiki-sync (push) Successful in 1m23s
Auto Tag / build-linux-arm64 (push) Failing after 3m38s
Auto Tag / build-macos-arm64 (push) Successful in 5m44s
Auto Tag / build-windows-amd64 (push) Successful in 14m17s
Auto Tag / build-linux-amd64 (push) Successful in 21m37s
Reviewed-on: #11
2026-04-05 17:12:11 +00:00
Shaun Arman
f1247520c7 fix(ci): replace heredoc with printf in arm64 install step
Some checks failed
Test / rust-tests (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / frontend-typecheck (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Has been cancelled
YAML block scalars end when a line is found with less indentation than
the scalar's own indent level. The heredoc body was at column 0 while
the rest of the run: block was at column 10, causing Gitea's YAML parser
to reject the entire workflow file with:

  yaml: line 412: could not find expected ':'

This silently invalidated auto-tag.yml on every push to master since the
apt-sources commit was merged, which is why PR#9 and PR#10 merges produced
no action runs.

Fix: replace the heredoc with a printf that stays within the block scalar's
indentation so the YAML remains valid.
2026-04-05 12:11:12 -05:00

View File

@ -408,14 +408,14 @@ jobs:
# explicit per-arch entries in sources.list. Without this, apt tries to resolve # explicit per-arch entries in sources.list. Without this, apt tries to resolve
# deps across both amd64 and arm64 simultaneously and hits "held broken packages". # deps across both amd64 and arm64 simultaneously and hits "held broken packages".
rm -f /etc/apt/sources.list.d/debian.sources rm -f /etc/apt/sources.list.d/debian.sources
cat > /etc/apt/sources.list << 'SOURCES' printf '%s\n' \
deb [arch=amd64] http://deb.debian.org/debian bookworm main 'deb [arch=amd64] http://deb.debian.org/debian bookworm main' \
deb [arch=amd64] http://deb.debian.org/debian bookworm-updates main 'deb [arch=amd64] http://deb.debian.org/debian bookworm-updates main' \
deb [arch=amd64] http://security.debian.org/debian-security bookworm-security main 'deb [arch=amd64] http://security.debian.org/debian-security bookworm-security main' \
deb [arch=arm64] http://deb.debian.org/debian bookworm main 'deb [arch=arm64] http://deb.debian.org/debian bookworm main' \
deb [arch=arm64] http://deb.debian.org/debian bookworm-updates main 'deb [arch=arm64] http://deb.debian.org/debian bookworm-updates main' \
deb [arch=arm64] http://security.debian.org/debian-security bookworm-security main 'deb [arch=arm64] http://security.debian.org/debian-security bookworm-security main' \
SOURCES > /etc/apt/sources.list
apt-get update -qq apt-get update -qq
apt-get install -y -qq \ apt-get install -y -qq \
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \ gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \