Fix CI: drop incorrect -c flag, fix word splitting in tests
Tests / tests (push) Successful in 2m15s

build-iso:
- Remove -c flag (it takes a pacman.conf path, not a clean flag)
- Use absolute paths for mkarchiso with -- separator
- Copy local-aur.files* alongside local-aur.db*

tests:
- Fix word splitting: use 'while IFS= read -r' instead of
  'for f in ' for shell and YAML file loops
- Fix YAML find filter to use -not -path like shell find
This commit is contained in:
2026-09-15 18:36:45 +10:00
parent 8e6e06155c
commit 56c02781c2
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ jobs:
- name: Setup local AUR repo
run: |
mkdir -p /tmp/localrepo
cp localrepo/*.pkg.tar.zst localrepo/local-aur.db* /tmp/localrepo/
cp localrepo/*.pkg.tar.zst localrepo/local-aur.db* localrepo/local-aur.files* /tmp/localrepo/
sed -i 's|file:///home/alvin/alvinarch/localrepo|file:///tmp/localrepo|' pacman.conf
- name: Install archiso and dependencies
@@ -27,8 +27,8 @@ jobs:
- name: Build Arch ISO
run: |
rm -rf "${PWD}/work" || true
mkarchiso -v -c -w "${PWD}/work" -o "${PWD}/out" -- "${PWD}"
rm -rf "$PWD/work" || true
mkarchiso -v -w "$PWD/work" -o "$PWD/out" -- "$PWD"
- name: Generate Unique Dynamic Tag
id: tag