6
6
name : CI
7
7
8
8
jobs :
9
- check :
9
+ build :
10
10
runs-on : ubuntu-latest
11
11
container :
12
12
image : ubuntu:20.10
@@ -19,24 +19,91 @@ jobs:
19
19
- " 1.40.0"
20
20
steps :
21
21
- 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
23
23
- uses : actions/checkout@v2
24
24
- uses : actions-rs/toolchain@v1
25
25
with :
26
26
toolchain : ${{ matrix.rust }}
27
27
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: build"
37
+ run : cargo build --manifest-path cairo/Cargo.toml --all-features
38
+ # gdk
39
+ - name : " gdk: tests"
40
+ run : xvfb-run --auto-servernum cargo test --manifest-path gdk/Cargo.toml --all-features
41
+ - name : " gdk: build"
42
+ run : cargo build --manifest-path gdk/Cargo.toml --all-features
43
+ # gdk-pixbuf
44
+ - name : " gdk-pixbuf: tests"
45
+ run : xvfb-run --auto-servernum cargo test --manifest-path gdk-pixbuf/Cargo.toml --all-features
46
+ - name : " gdk-pixbuf-sys: tests"
47
+ run : xvfb-run --auto-servernum cargo test --manifest-path gdk-pixbuf/sys/Cargo.toml --all-features
48
+ - name : " gdk-pixbuf: build"
49
+ run : cargo build --manifest-path gdk-pixbuf/Cargo.toml --all-features
50
+ # gdkx11
51
+ - name : " gdkx11: tests"
52
+ run : xvfb-run --auto-servernum cargo test --manifest-path gdkx11/Cargo.toml --all-features
53
+ - name : " gdkx11-sys: tests"
54
+ run : xvfb-run --auto-servernum cargo test --manifest-path gdkx11/sys/Cargo.toml --all-features
55
+ - name : " gdkx11: build"
56
+ run : cargo build --manifest-path gdkx11/Cargo.toml --all-features
57
+ # gio
58
+ - name : " gio: tests"
59
+ run : xvfb-run --auto-servernum cargo test --manifest-path gio/Cargo.toml --all-features
60
+ - name : " gio: build"
61
+ run : cargo build --manifest-path gio/Cargo.toml --all-features
62
+ # glib
63
+ - name : " glib: tests"
64
+ run : xvfb-run --auto-servernum cargo test --manifest-path glib/Cargo.toml --all-features
65
+ - name : " glib: build"
66
+ run : cargo build --manifest-path glib/Cargo.toml --all-features
67
+ # glib-macros
68
+ - name : " glib-macros: tests"
69
+ run : xvfb-run --auto-servernum cargo test --manifest-path glib-macros/Cargo.toml"
70
+ - name : " glib-macros: build"
71
+ run : cargo build --manifest-path glib-macros/Cargo.toml"
72
+ # graphene
73
+ - name : " graphene: tests"
74
+ run : xvfb-run --auto-servernum cargo test --manifest-path graphene/Cargo.toml --all-features
75
+ - name : " graphene-sys: tests"
76
+ run : xvfb-run --auto-servernum cargo test --manifest-path graphene/sys/Cargo.toml --all-features
77
+ - name : " graphene: build"
78
+ run : cargo build --manifest-path graphene/Cargo.toml --all-features
79
+ # gtk
80
+ - name : " gtk: tests"
81
+ run : xvfb-run --auto-servernum cargo test --manifest-path gtk/Cargo.toml --all-features
82
+ - name : " gtk-sys: tests"
83
+ run : xvfb-run --auto-servernum cargo test --manifest-path gtk/sys/Cargo.toml --all-features
84
+ - name : " gtk: build"
85
+ run : cargo build --manifest-path gtk/Cargo.toml --all-features
86
+ # pango
87
+ - name : " pango: tests"
88
+ run : xvfb-run --auto-servernum cargo test --manifest-path pango/Cargo.toml --all-features
89
+ - name : " pango-sys: tests"
90
+ run : xvfb-run --auto-servernum cargo test --manifest-path pango/sys/Cargo.toml --all-features
91
+ - name : " pango: build"
92
+ run : cargo build --manifest-path pango/Cargo.toml --all-features
93
+ # pangocairo
94
+ - name : " pangocairo: tests"
95
+ run : xvfb-run --auto-servernum cargo test --manifest-path pangocairo/Cargo.toml --all-features
96
+ - name : " pangocairo-sys: tests"
97
+ run : xvfb-run --auto-servernum cargo test --manifest-path pangocairo/sys/Cargo.toml --all-features
98
+ - name : " pangocairo: build"
99
+ run : cargo build --manifest-path pangocairo/Cargo.toml --all-features
100
+
101
+ # examples
102
+ - name : " examples"
103
+ run : cargo build --manifest-path examples/Cargo.toml --bins --examples --all-features
104
+
37
105
- run : git diff -R --exit-code
38
- # - name: Cleanup xvfb pidx
39
- # uses: bcomnes/cleanup-xvfb@v1
106
+ - uses : bcomnes/cleanup-xvfb@v1
40
107
41
108
fmt :
42
109
name : rust fmt
0 commit comments