Skip to content

Commit c716ab4

Browse files
committed
Merge branch 'master' into cairo-doc
2 parents 789ad27 + 8044406 commit c716ab4

File tree

616 files changed

+20539
-12597
lines changed

Some content is hidden

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

616 files changed

+20539
-12597
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master]
3+
branches: [main]
44
pull_request:
55
workflow_dispatch:
66

@@ -18,14 +18,14 @@ jobs:
1818
- stable
1919
- beta
2020
- nightly
21-
- "1.70.0"
21+
- "1.80.0"
2222
conf:
2323
- { name: "cairo", features: "png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface", nightly: "--features 'png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface'", test_sys: true }
2424
- { name: "gdk-pixbuf", features: "v2_42", nightly: "--all-features", test_sys: true }
25-
- { name: "gio", features: "v2_78", nightly: "--all-features", test_sys: true }
26-
- { name: "glib", features: "v2_78", nightly: "--all-features", test_sys: true }
27-
- { name: "graphene", features: "v1_12", nightly: "", test_sys: true }
28-
- { name: "pango", features: "v1_50", nightly: "--all-features", test_sys: true }
25+
- { name: "gio", features: "v2_84", nightly: "--all-features", test_sys: true }
26+
- { name: "glib", features: "v2_84,log", nightly: "--all-features", test_sys: true }
27+
- { name: "graphene", features: "", nightly: "", test_sys: true }
28+
- { name: "pango", features: "v1_54", nightly: "--all-features", test_sys: true }
2929
- { name: "pangocairo", features: "", nightly: "--all-features", test_sys: true }
3030
steps:
3131
- uses: actions/checkout@v4
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v4
3737
with:
3838
repository: gtk-rs/checker
39-
ref: master
39+
ref: main
4040
path: checker
4141
if: matrix.rust == 'nightly'
4242
# nightly
@@ -85,9 +85,13 @@ jobs:
8585
run: cargo test
8686
working-directory: ${{ matrix.conf.name }}/sys
8787
if: matrix.conf.test_sys
88+
- name: Test ${{ matrix.conf.name }}/gobject-sys
89+
run: cargo test
90+
working-directory: ${{ matrix.conf.name }}/gobject-sys
91+
if: matrix.conf.test_sys && matrix.conf.name == 'glib'
8892
# GLib compile tests only on stable
8993
- name: Compile tests
90-
run: cargo test --manifest-path glib/Cargo.toml --features "compiletests,v2_78"
94+
run: cargo test --manifest-path glib/Cargo.toml --features "compiletests,v2_84"
9195
if: matrix.rust == 'stable'
9296

9397
build-others:
@@ -100,7 +104,7 @@ jobs:
100104
- stable
101105
- beta
102106
- nightly
103-
- "1.70.0"
107+
- "1.80.0"
104108
steps:
105109
- uses: actions/checkout@v4
106110
- uses: actions-rs/toolchain@v1
@@ -138,6 +142,12 @@ jobs:
138142
command: fmt
139143
args: --all -- --check
140144

145+
cargo-deny:
146+
runs-on: ubuntu-latest
147+
steps:
148+
- uses: actions/checkout@v4
149+
- uses: EmbarkStudios/cargo-deny-action@v2
150+
141151
generator:
142152
name: regen check
143153
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master]
3+
branches: [main]
44
pull_request:
55
workflow_dispatch:
66
release:
@@ -11,14 +11,17 @@ name: docs
1111
jobs:
1212
docs:
1313
runs-on: ubuntu-latest
14+
container:
15+
image: ghcr.io/gtk-rs/gtk-rs-core/core:latest
1416
name: build
1517
env:
1618
RELEASES: |
19+
0.20=0.20
20+
0.19=0.19
1721
0.18=0.18
1822
0.17=0.17
1923
0.16=0.16
2024
0.15=0.15
21-
0.14=0.14
2225
RUSTFLAGS: --cfg docsrs
2326
RUSTDOCFLAGS: --cfg docsrs -Zunstable-options --generate-link-to-definition
2427
steps:
@@ -32,11 +35,12 @@ jobs:
3235
toolchain: nightly
3336
override: true
3437
components: rustfmt
38+
- run: git config --global --add safe.directory /__w/gtk-rs-core/gtk-rs-core
3539
- run: git submodule update --checkout
3640
- run: cargo install rustdoc-stripper
3741
- run: python3 ./generator.py --embed-docs --yes ./
3842
- run: git clone https://gitlab.gnome.org/World/Rust/gir-rustdoc/ # checkout action doesn't support random urls
39-
- run: echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk-rs-core/' --default-branch 'master' pre-docs | xargs)" >> ${GITHUB_ENV}
43+
- run: echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk-rs-core/' --default-branch 'main' pre-docs | xargs)" >> ${GITHUB_ENV}
4044
- uses: actions-rs/cargo@v1
4145
with:
4246
command: doc
@@ -60,20 +64,20 @@ jobs:
6064
-p pangocairo-sys
6165
--no-deps
6266
--all-features
63-
- run: echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV}
67+
- run: echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)' | head -n1)" >> ${GITHUB_ENV}
6468
- run: echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ env.RELEASE }}'; else echo 'git'; fi)" >> ${GITHUB_ENV}
6569
- name: Grab gtk-rs LOGO
66-
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
70+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
6771
run: |
68-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
69-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
70-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
71-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
72-
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs.svg -O ./target/doc/favicon.svg
72+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
73+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
74+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
75+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
76+
wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main/logo/gtk-rs.svg -O ./target/doc/favicon.svg
7377
7478
- name: deploy
75-
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
76-
uses: peaceiris/actions-gh-pages@v3
79+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
80+
uses: peaceiris/actions-gh-pages@v4
7781
with:
7882
github_token: ${{ secrets.GITHUB_TOKEN }}
7983
publish_dir: ./target/doc/
@@ -82,8 +86,8 @@ jobs:
8286

8387
- run: python3 ./gir-rustdoc/gir-rustdoc.py --project-title 'GTK Core Rust bindings' html-index
8488
- name: deploy index page
85-
uses: peaceiris/actions-gh-pages@v3
86-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
89+
uses: peaceiris/actions-gh-pages@v4
90+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
8791
with:
8892
github_token: ${{ secrets.GITHUB_TOKEN }}
8993
publish_dir: ./public/

.github/workflows/image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '0 0 * * 1'
77
push:
88
branches:
9-
- "master"
9+
- "main"
1010
paths:
1111
- "Dockerfile"
1212
pull_request:
@@ -19,13 +19,13 @@ jobs:
1919
runs-on: ubuntu-20.04
2020
steps:
2121
- name: Login to GitHub Container Registry
22-
uses: docker/login-action@v2
22+
uses: docker/login-action@v3
2323
with:
2424
username: ${{ github.actor }}
2525
password: ${{ secrets.GITHUB_TOKEN }}
2626
registry: ghcr.io
2727
- name: Push to GitHub Packages
28-
uses: docker/build-push-action@v3
28+
uses: docker/build-push-action@v6
2929
with:
3030
push: ${{ github.event_name != 'pull_request' }}
3131
tags: ghcr.io/${{ github.repository }}/core:latest

.github/workflows/typos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
push:
55
branches:
6-
- "master"
6+
- "main"
77
jobs:
88
typos:
99
name: Spell Check with Typos

.github/workflows/windows.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master]
3+
branches: [main]
44
pull_request:
55
workflow_dispatch:
66

@@ -14,7 +14,7 @@ jobs:
1414

1515
env:
1616
# git revision of gvsbuild we use for to build GLib and the other dependencies
17-
gvsbuildref: 1b3c28a3aa2312e7796f5f91b0a897a7a38b9292
17+
gvsbuildref: bb1d2691d25c7bb1239118a907c8e21b1aa24e03
1818

1919
# bump this number if you want to force a rebuild of gvsbuild with the same revision
2020
gvsbuildupdate: 1
@@ -28,7 +28,7 @@ jobs:
2828
run: mkdir C:\gtk-build\gtk\x64\release
2929

3030
- name: (GTK binaries) get from cache
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
id: cache
3333
with:
3434
path: C:\gtk-build\gtk\x64\release\**
@@ -80,11 +80,11 @@ jobs:
8080
conf:
8181
- { name: "cairo", test: true, args: "--features png,pdf,svg,ps,use_glib,v1_16,freetype,script,win32-surface" }
8282
- { name: "gdk-pixbuf", test: true, args: "--features v2_42" }
83-
- { name: "gio", test: true, args: "--features v2_74" }
84-
- { name: "glib", test: true, args: "--features v2_74" }
83+
- { name: "gio", test: true, args: "--features v2_80" }
84+
- { name: "glib", test: true, args: "--features v2_80" }
8585
- { name: "glib-build-tools", test: false, args: "" }
8686
- { name: "graphene", test: false, args: "" }
87-
- { name: "pango", test: true, args: "--features v1_50" }
87+
- { name: "pango", test: true, args: "--features v1_52" }
8888
- { name: "pangocairo", test: true, args: "" }
8989
- { name: "examples", test: false, args: "--bins --examples --all-features" }
9090

@@ -95,7 +95,7 @@ jobs:
9595
run: mkdir C:\gtk-build\gtk\x64\release
9696

9797
- name: Get GTK binaries from cache
98-
uses: actions/cache@v3
98+
uses: actions/cache@v4
9999
id: cache
100100
with:
101101
path: C:\gtk-build\gtk\x64\release\**

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ config.status
99
*.so
1010
*.o
1111
*.swp
12-
**Cargo.lock
1312
gtk/tests/*
1413
**~
1514
**/docs.md

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ ue = "ue"
1414
ot = "ot"
1515
siz = "siz"
1616
vai = "vai"
17+
guid = "guid"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Paolo Borelli:
258258
- gio: use `StrV` for the `file_info` API
259259
- gio: use `GStr` for the manual extension point implementation
260260
- glib: list: mark as transparent and impl TransparentPtr
261-
- glib: Rename `StrVItem` to `GStrPtr` and make it clonable and transparent
261+
- glib: Rename `StrVItem` to `GStrPtr` and make it cloneable and transparent
262262
- glib: `key_file`: return `PtrSlice<GStrPtr>`
263263
- glib-macros: further tweak docs
264264
- glib: Rename `GStrPtr` to `GStringPtr`

0 commit comments

Comments
 (0)