-
-
Notifications
You must be signed in to change notification settings - Fork 78
106 lines (83 loc) · 3.53 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
name: CI
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
- "1.70.0"
env:
DISPLAY: ":99.0"
steps:
- run: sudo apt-get update -y
- run: sudo apt-get install -y libgtk-3-dev libglib2.0-dev libgraphene-1.0-dev git xvfb curl libcairo-gobject2 libcairo2-dev libxdo-dev libwebkit2gtk-4.0-dev openbox
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy
- name: "clippy"
run: cargo clippy -- --deny warnings
- name: "relm: build"
run: cargo build
- name: "relm: tests"
run: |
Xvfb :99 &
sleep 3
openbox &
cargo test --manifest-path relm-examples/Cargo.toml -- --nocapture
- name: "relm-derive: tests"
run: |
cargo test --manifest-path relm-derive/Cargo.toml -- --nocapture
- name: "relm: test examples"
run: |
Xvfb :99 &
sleep 3
openbox &
cargo test --manifest-path relm-examples/Cargo.toml --examples
- name: "relm: test buttons-attribute example"
run: |
Xvfb :99 &
sleep 3
openbox &
cargo test --manifest-path relm-examples/examples/buttons-attribute/Cargo.toml
- name: "relm: build http example"
run: cargo build --manifest-path relm-examples/examples/http/Cargo.toml
- name: "relm: build async example"
run: cargo build --manifest-path relm-examples/examples/async/Cargo.toml
# - name: "relm: build webkit-test example"
# run: cargo build --manifest-path relm-examples/examples/webkit-test/Cargo.toml
- name: "relm: clean tests"
run: cargo clean --manifest-path relm-examples/Cargo.toml
- name: "relm: clean http example"
run: cargo clean --manifest-path relm-examples/examples/http/Cargo.toml
- name: "relm: clean async example"
run: cargo clean --manifest-path relm-examples/examples/async/Cargo.toml
# - name: "relm: clean webkit-test example"
# run: cargo clean --manifest-path relm-examples/examples/webkit-test/Cargo.toml
- name: "relm: build 7gui counter example"
run: cargo build --manifest-path relm-examples/examples/7gui/1_counter/Cargo.toml
- name: "relm: build 7gui temperature converter example"
run: cargo build --manifest-path relm-examples/examples/7gui/2_temperature_converter/Cargo.toml
- name: "relm: build 7gui flight booker example"
run: cargo build --manifest-path relm-examples/examples/7gui/3_flight_booker/Cargo.toml
- name: "relm: build 7gui progress bar example"
run: cargo build --manifest-path relm-examples/examples/7gui/4_progress_bar/Cargo.toml
- name: "relm: build 7gui crud example"
run: cargo build --manifest-path relm-examples/examples/7gui/5_crud/Cargo.toml
- name: "relm: build 7gui circle drawer example"
run: cargo build --manifest-path relm-examples/examples/7gui/6_circle_drawer/Cargo.toml
- name: "relm: build 7gui cells example"
run: cargo build --manifest-path relm-examples/examples/7gui/7_cells/Cargo.toml
- name: "relm: test 7gui cells example"
run: cargo test --manifest-path relm-examples/examples/7gui/7_cells/Cargo.toml
- uses: bcomnes/[email protected]