Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 64ce23d

Browse files
CI: build & test crates individually
1 parent 71db765 commit 64ce23d

File tree

1 file changed

+84
-13
lines changed

1 file changed

+84
-13
lines changed

.github/workflows/CI.yml

+84-13
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
name: CI
77

88
jobs:
9-
check:
9+
build:
1010
runs-on: ubuntu-latest
1111
container:
1212
image: ubuntu:20.10
@@ -19,24 +19,95 @@ jobs:
1919
- "1.40.0"
2020
steps:
2121
- run: apt-get update -y
22-
- run: apt-get install -y libgtk-3-dev libglib2.0-dev libgraphene-1.0-dev git xvfb curl
22+
- run: apt-get install -y libgtk-3-dev libglib2.0-dev libgraphene-1.0-dev git xvfb curl libcairo-gobject2 libcairo2-dev
2323
- uses: actions/checkout@v2
2424
- uses: actions-rs/toolchain@v1
2525
with:
2626
toolchain: ${{ matrix.rust }}
2727
override: true
28-
- uses: actions-rs/cargo@v1
29-
name: "Docs"
30-
with:
31-
command: doc
32-
#- run: xvfb-run --auto-servernum cargo test
33-
- uses: actions-rs/cargo@v1
34-
name: "Build"
35-
with:
36-
command: build
28+
# atk
29+
- name: "atk: tests"
30+
run: xvfb-run --auto-servernum cargo test --manifest-path atk/Cargo.toml --all-features
31+
- name: "atk-sys: tests"
32+
run: xvfb-run --auto-servernum cargo test --manifest-path atk/sys/Cargo.toml --all-features
33+
- name: "atk: build"
34+
run: cargo build --manifest-path atk/Cargo.toml --all-features
35+
# cairo
36+
- name: "cairo: tests"
37+
run: xvfb-run --auto-servernum cargo test --manifest-path cairo/Cargo.toml --all-features
38+
- name: "cairo-sys: tests"
39+
run: xvfb-run --auto-servernum cargo test --manifest-path cairo/sys/Cargo.toml --all-features
40+
- name: "cairo: build"
41+
run: cargo build --manifest-path cairo/Cargo.toml --all-features
42+
# gdk
43+
- name: "gdk: tests"
44+
run: xvfb-run --auto-servernum cargo test --manifest-path gdk/Cargo.toml --all-features
45+
- name: "gdk: build"
46+
run: cargo build --manifest-path gdk/Cargo.toml --all-features
47+
# gdk-pixbuf
48+
- name: "gdk-pixbuf: tests"
49+
run: xvfb-run --auto-servernum cargo test --manifest-path gdk-pixbuf/Cargo.toml --all-features
50+
- name: "gdk-pixbuf-sys: tests"
51+
run: xvfb-run --auto-servernum cargo test --manifest-path gdk-pixbuf/sys/Cargo.toml --all-features
52+
- name: "gdk-pixbuf: build"
53+
run: cargo build --manifest-path gdk-pixbuf/Cargo.toml --all-features
54+
# gdkx11
55+
- name: "gdkx11: tests"
56+
run: xvfb-run --auto-servernum cargo test --manifest-path gdkx11/Cargo.toml --all-features
57+
- name: "gdkx11-sys: tests"
58+
run: xvfb-run --auto-servernum cargo test --manifest-path gdkx11/sys/Cargo.toml --all-features
59+
- name: "gdkx11: build"
60+
run: cargo build --manifest-path gdkx11/Cargo.toml --all-features
61+
# gio
62+
- name: "gio: tests"
63+
run: xvfb-run --auto-servernum cargo test --manifest-path gio/Cargo.toml --all-features
64+
- name: "gio: build"
65+
run: cargo build --manifest-path gio/Cargo.toml --all-features
66+
# glib
67+
- name: "glib: tests"
68+
run: xvfb-run --auto-servernum cargo test --manifest-path glib/Cargo.toml --all-features
69+
- name: "glib: build"
70+
run: cargo build --manifest-path glib/Cargo.toml --all-features
71+
# glib-macros
72+
- name: "glib-macros: tests"
73+
run: xvfb-run --auto-servernum cargo test --manifest-path glib-macros/Cargo.toml"
74+
- name: "glib-macros: build"
75+
run: cargo build --manifest-path glib-macros/Cargo.toml"
76+
# graphene
77+
- name: "graphene: tests"
78+
run: xvfb-run --auto-servernum cargo test --manifest-path graphene/Cargo.toml --all-features
79+
- name: "graphene-sys: tests"
80+
run: xvfb-run --auto-servernum cargo test --manifest-path graphene/sys/Cargo.toml --all-features
81+
- name: "graphene: build"
82+
run: cargo build --manifest-path graphene/Cargo.toml --all-features
83+
# gtk
84+
- name: "gtk: tests"
85+
run: xvfb-run --auto-servernum cargo test --manifest-path gtk/Cargo.toml --all-features
86+
- name: "gtk-sys: tests"
87+
run: xvfb-run --auto-servernum cargo test --manifest-path gtk/sys/Cargo.toml --all-features
88+
- name: "gtk: build"
89+
run: cargo build --manifest-path gtk/Cargo.toml --all-features
90+
# pango
91+
- name: "pango: tests"
92+
run: xvfb-run --auto-servernum cargo test --manifest-path pango/Cargo.toml --all-features
93+
- name: "pango-sys: tests"
94+
run: xvfb-run --auto-servernum cargo test --manifest-path pango/sys/Cargo.toml --all-features
95+
- name: "pango: build"
96+
run: cargo build --manifest-path pango/Cargo.toml --all-features
97+
# pangocairo
98+
- name: "pangocairo: tests"
99+
run: xvfb-run --auto-servernum cargo test --manifest-path pangocairo/Cargo.toml --all-features
100+
- name: "pangocairo-sys: tests"
101+
run: xvfb-run --auto-servernum cargo test --manifest-path pangocairo/sys/Cargo.toml --all-features
102+
- name: "pangocairo: build"
103+
run: cargo build --manifest-path pangocairo/Cargo.toml --all-features
104+
105+
# examples
106+
- name: "examples"
107+
run: cargo build --manifest-path examples/Cargo.toml --bins --examples --all-features
108+
37109
- run: git diff -R --exit-code
38-
# - name: Cleanup xvfb pidx
39-
# uses: bcomnes/cleanup-xvfb@v1
110+
- uses: bcomnes/cleanup-xvfb@v1
40111

41112
fmt:
42113
name: rust fmt

0 commit comments

Comments
 (0)