Skip to content

Commit fd53cfb

Browse files
authored
Merge pull request #1121 from tleedjarv/gha-fix
GHA: Fix seemingly random `-m32` build failures
2 parents a769e71 + 366050f commit fd53cfb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/CI.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ jobs:
112112
mkdir -p '${{ steps.vars.outputs.PKG_DIR }}'
113113
mkdir -p '${{ steps.vars.outputs.PKG_DIR }}'/bin
114114
115+
- name: "Ubuntu: Prepare multilib (i386)"
116+
if: ${{ contains(matrix.job.os, 'ubuntu') && contains(matrix.job.ocaml-version, '-32bit') }}
117+
run: |
118+
sudo dpkg --add-architecture i386
119+
sudo apt-get update
120+
sudo apt-get install gcc-multilib g++-multilib libgtk-3-dev:i386 libexpat1-dev:i386
121+
echo PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig:/usr/share/pkgconfig:"$PKG_CONF_LIBDIR" >> "$GITHUB_ENV"
122+
115123
- name: Use OCaml ${{ matrix.job.ocaml-version }}
116124
uses: ocaml/setup-ocaml@v3
117125
with:
@@ -421,14 +429,6 @@ jobs:
421429
'@ | patch -Nu -p 1
422430
opam pin --no-action add lablgtk3 .
423431
424-
- name: "Ubuntu: Prepare lablgtk install (i386)"
425-
if: ${{ contains(matrix.job.os, 'ubuntu') && contains(matrix.job.ocaml-version, '-32bit') }}
426-
run: |
427-
sudo dpkg --add-architecture i386
428-
sudo apt-get update
429-
sudo apt-get install libgtk-3-dev:i386 libexpat1-dev:i386
430-
echo PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig:/usr/share/pkgconfig:"$PKG_CONF_LIBDIR" >> "$GITHUB_ENV"
431-
432432
# [2024-12] Recent dune release switched from using pkg-config to pkgconf.
433433
# However, pkgconf is broken in many environments and this breaks building
434434
# cairo2, a dependency for lablgtk3 (and likely would break lablgtk3, too,

0 commit comments

Comments
 (0)