Skip to content

Commit

Permalink
ci: implement a (temporary) workaround to help switching to `asciidoc…
Browse files Browse the repository at this point in the history
…tor`

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]>
  • Loading branch information
dscho committed Jun 12, 2024
1 parent e51348a commit 0546109
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ jobs:
# reduce time required to install packages by disabling pacman's disk space checking
sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf &&
# help git-sdk-arm64 switch from `asciidoc` to `asciidoctor`
if test mingw-w64-git = '${{ matrix.directory }}'
then
packages=$(ls -d /var/lib/pacman/local/mingw-w64-*-asciidoctor-extensions-* 2>/dev/null |
sed -e 's|-[0-9].*||' -e 's|.*/||')
if test -n "$packages"
then
pacman -R --noconfirm $packages
fi &&
for prefix in /mingw32 /mingw64 /clangarm64
do
if test -x $prefix/bin/gem
then
PATH=$prefix/bin:$PATH gem uninstall asciidoctor
fi
done
fi &&
top_dir=$PWD &&
cd "${{ matrix.directory }}" &&
MAKEFLAGS=-j8 makepkg-mingw -s --noconfirm &&
Expand Down

0 comments on commit 0546109

Please sign in to comment.