Skip to content

Commit 8784a65

Browse files
ci/msvc: Build GLib as a first step
1 parent cbd9f4d commit 8784a65

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/windows-msvc.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: windows-latest
2727
continue-on-error: true
2828
env:
29-
PKG_CONFIG_PATH: 'C:\gnome\lib\pkgconfig'
29+
PKG_CONFIG_PATH: 'C:/gnome/lib/pkgconfig'
3030

3131
steps:
3232
- uses: actions/checkout@v6
@@ -53,6 +53,12 @@ jobs:
5353
ls C:\pkg-config-lite-0.28-1\bin
5454
pkg-config --version
5555
56+
- name: Clone GLib
57+
working-directory: /
58+
if: steps.cache.outputs.cache-hit != 'true'
59+
run: |
60+
git clone https://gitlab.gnome.org/GNOME/glib.git --depth 1
61+
5662
- name: Clone GTK
5763
working-directory: /
5864
if: steps.cache.outputs.cache-hit != 'true'
@@ -72,11 +78,23 @@ jobs:
7278
with:
7379
architecture: x64
7480

81+
- name: Prepare GLib build
82+
working-directory: /glib
83+
if: steps.cache.outputs.cache-hit != 'true'
84+
run: |
85+
meson setup builddir --prefix=C:/gnome -Dtests=false -Dsysprof=disabled
86+
87+
- name: Build and install GLib
88+
working-directory: /glib
89+
if: steps.cache.outputs.cache-hit != 'true'
90+
run: |
91+
meson install -C builddir
92+
7593
- name: Prepare GTK build
7694
working-directory: /gtk
7795
if: steps.cache.outputs.cache-hit != 'true'
7896
run: |
79-
meson setup builddir --prefix=C:/gnome -Dbuild-demos=false -Dbuild-tests=false -Dvulkan=disabled -Dmedia-gstreamer=disabled -Dbuild-examples=false -Dglib:tests=false -Dharfbuzz:tests=disabled -Dharfbuzz:docs=disabled -Dgraphene:tests=false -Dgdk-pixbuf:tests=false -Dcairo:tests=disabled -Dglib:sysprof=disabled -Dgdk-pixbuf:documentation=false
97+
meson setup builddir --prefix=C:/gnome -Dbuild-demos=false -Dbuild-tests=false -Dvulkan=disabled -Dmedia-gstreamer=disabled -Dbuild-examples=false -Dharfbuzz:tests=disabled -Dharfbuzz:docs=disabled -Dgraphene:tests=false -Dgdk-pixbuf:tests=false -Dcairo:tests=disabled -Dgdk-pixbuf:documentation=false
8098
8199
- name: Build and install GTK
82100
working-directory: /gtk

0 commit comments

Comments
 (0)