This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
937faff
commit 20aef87
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
name: CI | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: fedora:latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
- "1.40.0" | ||
steps: | ||
- run: sudo dnf install -y gcc gtk3-devel graphene-devel glib2-devel git xorg-x11-server-Xvfb | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
name: "Docs" | ||
with: | ||
command: doc | ||
- run: xvfb-run --auto-servernum cargo test | ||
- uses: actions-rs/cargo@v1 | ||
name: "Build" | ||
with: | ||
command: build | ||
- run: git diff -R --exit-code | ||
- name: Cleanup xvfb pidx | ||
uses: bcomnes/cleanup-xvfb@v1 | ||
|
||
fmt: | ||
name: rust fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- run: rustup component add rustfmt | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
checker: | ||
name: gtk-rs checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: gtk-rs/checker | ||
ref: master | ||
path: checker | ||
- working-directory: checker | ||
run: cargo build --release | ||
- run: "./checker/target/release/checker ." | ||
- run: "./checker/check_init_asserts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ members = [ | |
"pangocairo/sys", | ||
] | ||
|
||
exclude = ["gir"] | ||
exclude = ["gir", "checker"] |