Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/tests: Remove gtk3 related bits #1539

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ on:

jobs:
build-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v4
@@ -35,7 +35,7 @@ jobs:
destination_dir: book

codespell:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ on:

jobs:
build-deploy:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
50 changes: 19 additions & 31 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
os: [ubuntu-latest]
toolchain: [stable]

defaults:
@@ -48,31 +48,26 @@ jobs:
with:
path: target
key: checks-${{ runner.os }}-cargo-target-dir-${{ steps.toolchain.outputs.rustc_hash }}
- name: Install packages from apt
run: |
sudo apt update
sudo apt install libgtk-3-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
if: matrix.os == 'ubuntu-20.04'
- name: "Run clippy"
uses: actions-rs/cargo@v1
with:
command: clippy
args: --release --tests -- -D warnings
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-latest'
- name: "Run formatting check"
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-latest'

build:
name: "Build/Test"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
os: [ubuntu-latest]
toolchain: [nightly, stable]
# include:
# - os: windows-latest
@@ -125,13 +120,13 @@ jobs:
- name: Install packages from apt
run: |
sudo apt update
sudo apt install libgtk-3-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
if: matrix.os == 'ubuntu-20.04'
sudo apt install libgtk-4-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
if: matrix.os == 'ubuntu-latest'
- name: Install toolchain packages with pacman
run: pacman --noconfirm -S base-devel mingw-w64-${{ matrix.arch }}-toolchain
if: matrix.os == 'windows-latest'
- name: Install library devel packages with pacman
run: pacman --noconfirm -S mingw-w64-${{ matrix.arch }}-gtk3 mingw-w64-${{ matrix.arch }}-libgit2
run: pacman --noconfirm -S mingw-w64-${{ matrix.arch }}-libgit2
if: matrix.os == 'windows-latest'
- name: "Acquire gir-files"
uses: actions/checkout@v4
@@ -149,38 +144,31 @@ jobs:
with:
command: test
args: --release
- name: "Test (tests/sys)"
run: tests/sys/test.sh
- name: "sys_build (Windows)"
run: |
cd tests/sys/sys_build
cargo build && cargo build --features v3_20
if: matrix.os == 'windows-latest'
- name: "Acquire gtk3-rs"
- name: "Acquire gtk4-rs"
uses: actions/checkout@v4
with:
repository: gtk-rs/gtk3-rs
repository: gtk-rs/gtk4-rs
ref: master
path: gtk3-rs
if: matrix.os == 'ubuntu-20.04'
- name: "Symlink `gir` in gtk3-rs"
path: gtk4-rs
if: matrix.os == 'ubuntu-latest'
- name: "Symlink `gir` in gtk4-rs"
run: |
rmdir gtk3-rs/gir
ln -sf .. gtk3-rs/gir
- name: "Attempt to rebuild gtk3-rs gir"
run: cd gtk3-rs && python3 generator.py --no-fmt --gir-path ../target/release/gir --gir-files-directories ../tests/gir-files/ && rm ../Cargo.* && cargo build
if: matrix.os == 'ubuntu-20.04'
rmdir gtk4-rs/gir
ln -sf .. gtk4-rs/gir
- name: "Attempt to rebuild gtk4-rs gir"
run: cd gtk4-rs && python3 generator.py --no-fmt --gir-path ../target/release/gir --gir-files-directories ../tests/gir-files/ && rm ../Cargo.* && cargo build
if: matrix.os == 'ubuntu-latest'
- name: "Acquire gtk-rs-core"
uses: actions/checkout@v4
with:
repository: gtk-rs/gtk-rs-core
ref: master
path: gtk-rs-core
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-latest'
- name: "Symlink `gir` in gtk-rs-core"
run: |
rmdir gtk-rs-core/gir
ln -sf .. gtk-rs-core/gir
- name: "Rebuild gio"
run: cd gtk-rs-core/gio && cargo test
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-latest'
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
target
/gio
/gtk
/src/gir_version.rs
/.vscode
tests/gir-files
tests/sys/*-sys/**
tests/sys/sys_build/Cargo.lock
!tests/sys/*-sys/Cargo.toml
**.DS_Store
85 changes: 67 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

81 changes: 0 additions & 81 deletions tests/sys/atk-sys/Cargo.toml

This file was deleted.

65 changes: 0 additions & 65 deletions tests/sys/gdk-pixbuf-sys/Cargo.toml

This file was deleted.

93 changes: 0 additions & 93 deletions tests/sys/gdk-sys/Cargo.toml

This file was deleted.

105 changes: 0 additions & 105 deletions tests/sys/gio-sys/Cargo.toml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/sys/gir-atk.toml

This file was deleted.

12 changes: 0 additions & 12 deletions tests/sys/gir-gdk-pixbuf.toml

This file was deleted.

35 changes: 0 additions & 35 deletions tests/sys/gir-gdk.toml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/sys/gir-gio.toml

This file was deleted.

29 changes: 0 additions & 29 deletions tests/sys/gir-glib.toml

This file was deleted.

15 changes: 0 additions & 15 deletions tests/sys/gir-gobject.toml

This file was deleted.

21 changes: 0 additions & 21 deletions tests/sys/gir-gtk.toml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/sys/gir-pango.toml

This file was deleted.

93 changes: 0 additions & 93 deletions tests/sys/glib-sys/Cargo.toml

This file was deleted.

73 changes: 0 additions & 73 deletions tests/sys/gobject-sys/Cargo.toml

This file was deleted.

129 changes: 0 additions & 129 deletions tests/sys/gtk-sys/Cargo.toml

This file was deleted.

73 changes: 0 additions & 73 deletions tests/sys/pango-sys/Cargo.toml

This file was deleted.

15 changes: 0 additions & 15 deletions tests/sys/sys_build/Cargo.toml

This file was deleted.

7 changes: 0 additions & 7 deletions tests/sys/sys_build/src/main.rs

This file was deleted.

19 changes: 0 additions & 19 deletions tests/sys/test.sh

This file was deleted.


Unchanged files with check annotations Beta

Scalar,
/// Type implementing TryFromGlib<Error=GlibNoneError>.
Option,
/// Type implementing TryFromGlib<Err> where Err is neither GlibNoneError

Check warning on line 13 in src/analysis/conversion_type.rs

GitHub Actions / build-deploy

unclosed HTML tag `Err`
/// nor GlibNoneOrInvalidError. Embeds the Error type name.
/// Defaults to the object's type for the `Ok` variant if `ok_type` is
/// `None`.
pub user_data_index: usize,
pub destroy_index: usize,
pub nullable: library::Nullable,
/// This field is used to give the type name when generating the "IsA<X>"

Check warning on line 41 in src/analysis/trampolines.rs

GitHub Actions / build-deploy

unclosed HTML tag `X`
/// part.
pub type_name: String,
}