Skip to content

Commit 33b31ba

Browse files
committed
wayland: CI
1 parent 330f3c5 commit 33b31ba

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,49 @@ jobs:
108108
args: --manifest-path=docs/book_examples/Cargo.toml
109109
if: contains(matrix.os, 'mac')
110110

111+
# we test the wayland backend as a separate job
112+
test-stable-wayland:
113+
runs-on: ubuntu-latest
114+
name: cargo clippy+test (wayland)
115+
steps:
116+
- uses: actions/checkout@v2
117+
118+
- name: install wayland
119+
run: |
120+
sudo apt update
121+
sudo apt install libwayland-dev libpango1.0-dev libxkbcommon-dev
122+
123+
- name: install stable toolchain
124+
uses: actions-rs/toolchain@v1
125+
with:
126+
toolchain: stable
127+
components: clippy
128+
profile: minimal
129+
override: true
130+
131+
- name: restore cache
132+
uses: Swatinem/rust-cache@v1
133+
134+
- name: cargo clippy druid-shell
135+
uses: actions-rs/cargo@v1
136+
with:
137+
command: clippy
138+
args: --manifest-path=druid-shell/Cargo.toml --all-targets --features wayland --no-default-features -- -D warnings
139+
140+
- name: cargo test druid-shell
141+
uses: actions-rs/cargo@v1
142+
with:
143+
command: test
144+
args: --manifest-path=druid-shell/Cargo.toml --features wayland --no-default-features
145+
146+
# We use --all-targets to skip doc tests; there are no wayland-specific
147+
# doctests in the main druid crate anyway
148+
- name: cargo test druid
149+
uses: actions-rs/cargo@v1
150+
with:
151+
command: test
152+
args: --manifest-path=druid/Cargo.toml --all-targets --features=svg,image,im --features wayland --no-default-features
153+
111154
# we test the gtk backend as a separate job because gtk install takes
112155
# a long time.
113156
test-stable-gtk:

0 commit comments

Comments
 (0)