Skip to content

Commit c07d115

Browse files
committed
chore: Add libdisplay-info to github ci
1 parent 870e5be commit c07d115

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323
- uses: dtolnay/rust-toolchain@stable
24-
- run: sudo apt-get update; sudo apt-get install -y libdrm-dev libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev
24+
- run: sudo apt-get update; sudo apt-get install -y libdrm-dev libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev libdisplay-info-dev
2525
- run: cargo check --no-default-features
2626
- run: cargo check --features debug
2727
- run: cargo check --features profile-with-tracy

.github/workflows/ci.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
format:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v2
15+
- name: Rust toolchain
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
override: true
20+
profile: minimal
21+
components: rustfmt
22+
default: true
23+
- name: Cargo cache
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.cargo/registry
28+
~/.cargo/git
29+
key: ${{ runner.os }}-cargo-rust_stable-${{ hashFiles('**/Cargo.toml') }}
30+
- name: Format
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: fmt
34+
args: --all -- --check
35+
test:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout sources
39+
uses: actions/checkout@v2
40+
- name: Rust toolchain
41+
uses: actions-rs/toolchain@v1
42+
with:
43+
toolchain: stable
44+
override: true
45+
default: true
46+
profile: minimal
47+
- name: Cargo cache
48+
uses: actions/cache@v2
49+
with:
50+
path: |
51+
~/.cargo/registry
52+
~/.cargo/git
53+
key: ${{ runner.os }}-cargo-rust_stable-${{ hashFiles('**/Cargo.toml') }}
54+
- name: System dependencies
55+
run: sudo apt-get update; sudo apt-get install libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libsystemd-dev libdbus-1-dev libdisplay-info-dev
56+
- name: Build cache
57+
uses: actions/cache@v2
58+
with:
59+
path: target
60+
key: ${{ runner.os }}-build-rust_stable-smithay-feature_${{ matrix.features }}-${{ hashFiles('**/Cargo.toml') }}
61+
- name: Build and install Libseat
62+
run: |
63+
sudo apt-get install meson ninja-build
64+
wget https://git.sr.ht/~kennylevinsen/seatd/archive/0.5.0.tar.gz -O libseat-source.tar.gz
65+
tar xf libseat-source.tar.gz
66+
cd seatd-0.5.0
67+
meson -Dbuiltin=enabled -Dserver=disabled -Dexamples=disabled -Dman-pages=disabled build .
68+
ninja -C build
69+
sudo meson install -C build
70+
- name: Test features
71+
uses: actions-rs/cargo@v1
72+
env:
73+
RUST_BACKTRACE: full
74+
with:
75+
command: test
76+
args: --all-features

0 commit comments

Comments
 (0)