Skip to content

Commit 69ce79b

Browse files
committed
ci: implement a (temporary) workaround to help switching to asciidoctor
We want to switch from using `asciidoctor-extensions` to using regular `asciidoctor` instead (the custom macros are no longer needed). To that end, we want to install `mingw-w64-asciidoctor`, but that would fail due to a conflict with the `mingw-w64-asciidoctor-extensions` package: error: failed to commit transaction (conflicting files) mingw-w64-x86_64-asciidoctor: /mingw64/bin/asciidoctor exists in filesystem Let's work around that by explicitly removing the latter package as needed. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e51348a commit 69ce79b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: .github/workflows/main.yml

+9
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
# reduce time required to install packages by disabling pacman's disk space checking
6060
sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf &&
6161
62+
# help git-sdk-arm64 switch from `asciidoc` to `asciidoctor`
63+
if test mingw-w64-git = '${{ matrix.directory }}'
64+
then
65+
packages=$(ls -d /var/lib/pacman/local/mingw-w64-*-asciidoctor-extensions-* 2>/dev/null |
66+
sed -e 's|.*/||' -e 's|-[0-9].*||)
67+
test z "$packages" ||
68+
pacman -R --noconfirm $packages
69+
fi &&
70+
6271
top_dir=$PWD &&
6372
cd "${{ matrix.directory }}" &&
6473
MAKEFLAGS=-j8 makepkg-mingw -s --noconfirm &&

0 commit comments

Comments
 (0)