Skip to content

Commit 8209101

Browse files
committed
Add CI workflow
1 parent e28a235 commit 8209101

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install system dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y \
22+
libxkbcommon-dev \
23+
libwayland-dev \
24+
libxkbcommon-x11-dev \
25+
libx11-dev \
26+
libxcursor-dev \
27+
libxi-dev \
28+
libxrandr-dev
29+
30+
- uses: dtolnay/rust-toolchain@stable
31+
32+
- uses: Swatinem/rust-cache@v2
33+
34+
- name: Run tests
35+
run: cargo test --all-features

0 commit comments

Comments
 (0)