Skip to content

Commit 84b5ad1

Browse files
authored
Merge pull request #2190 from gtk-rs/0.10-backports
0.10 backports
2 parents 063c412 + f41a391 commit 84b5ad1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+384
-226
lines changed

.github/workflows/docs.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,16 @@ jobs:
4545
0.5=0.5
4646
0.4=0.4
4747
0.3=0.3
48-
RUSTFLAGS: --cfg docsrs
48+
RUSTDOCFLAGS: >
49+
--extern-html-root-url=wayland_client=https://smithay.github.io/wayland-rs/
50+
--extern-html-root-url=x11=https://docs.rs/x11/latest/
51+
--extern-html-root-url=khronos_egl=https://docs.rs/khronos-egl/latest/
52+
--extern-html-root-url=xkb=https://docs.rs/xkb/latest/
53+
--extern-html-root-url=windows=https://microsoft.github.io/windows-docs-rs/doc/
54+
--extern-html-root-url=gl=https://docs.rs/gl/latest/
55+
--cfg docsrs
56+
-Zunstable-options --generate-link-to-definition
57+
DOCS_RS: 1
4958
steps:
5059
- uses: actions/checkout@v4
5160
with:
@@ -65,17 +74,6 @@ jobs:
6574
- run: echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV}
6675
- run: echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ env.RELEASE }}'; else echo 'git'; fi)" >> ${GITHUB_ENV}
6776
- run: echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk4-rs/' --default-branch 'main' pre-docs | xargs)" >> ${GITHUB_ENV}
68-
env:
69-
RUSTDOCFLAGS: >
70-
--extern-html-root-url=wayland_client=https://smithay.github.io/wayland-rs/
71-
--extern-html-root-url=x11=https://docs.rs/x11/latest/
72-
--extern-html-root-url=khronos_egl=https://docs.rs/khronos-egl/latest/
73-
--extern-html-root-url=xkb=https://docs.rs/xkb/latest/
74-
--extern-html-root-url=windows=https://microsoft.github.io/windows-docs-rs/doc/
75-
--extern-html-root-url=gl=https://docs.rs/gl/latest/
76-
--cfg docsrs
77-
-Zunstable-options --generate-link-to-definition
78-
7977
- run: sudo dnf install jq -y
8078
- name: Get features excluding some
8179
run: |

.github/workflows/windows-msvc.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
name: Windows MSVC
2626
runs-on: windows-latest
2727
continue-on-error: true
28-
env:
29-
PKG_CONFIG_PATH: 'C:\gnome\lib\pkgconfig'
3028

3129
steps:
3230
- uses: actions/checkout@v4
@@ -53,6 +51,12 @@ jobs:
5351
ls C:\pkg-config-lite-0.28-1\bin
5452
pkg-config --version
5553
54+
- name: Clone GLib
55+
working-directory: /
56+
if: steps.cache.outputs.cache-hit != 'true'
57+
run: |
58+
git clone https://gitlab.gnome.org/GNOME/glib.git --depth 1
59+
5660
- name: Clone GTK
5761
working-directory: /
5862
if: steps.cache.outputs.cache-hit != 'true'
@@ -72,11 +76,28 @@ jobs:
7276
with:
7377
architecture: x64
7478

79+
- name: Set PKG_CONFIG_PATH
80+
shell: bash
81+
run: |
82+
echo "PKG_CONFIG_PATH=C:/gnome/lib/pkgconfig" >> $GITHUB_ENV
83+
84+
- name: Prepare GLib build
85+
working-directory: /glib
86+
if: steps.cache.outputs.cache-hit != 'true'
87+
run: |
88+
meson setup builddir --prefix=C:/gnome -Dtests=false -Dsysprof=disabled
89+
90+
- name: Build and install GLib
91+
working-directory: /glib
92+
if: steps.cache.outputs.cache-hit != 'true'
93+
run: |
94+
meson install -C builddir
95+
7596
- name: Prepare GTK build
7697
working-directory: /gtk
7798
if: steps.cache.outputs.cache-hit != 'true'
7899
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
100+
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
80101
81102
- name: Build and install GTK
82103
working-directory: /gtk

0 commit comments

Comments
 (0)