Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr committed Apr 5, 2024
1 parent cb11149 commit 4120100
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install libwpe-1.0-1 libwpebackend-fdo-1.0-1 libwpewebkit-1.0-3
- uses: actions/checkout@v2
- name: Stable
run: cargo test
- name: Oldstable
run: |
oldstable=$(cat Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
rustup toolchain install --profile minimal $oldstable
rustup default $oldstable
cargo test
- name: Clippy
run: |
rustup component add clippy
cargo clippy --all-targets
- name: Rustfmt
run: |
rustup toolchain install nightly -c rustfmt
cargo +nightly fmt -- --check
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ members = [

[dependencies]
funq = { path = "./funq" }
glutin_egl_sys = { path = "../../rust-windowing/glutin/glutin_egl_sys" }
glutin = { path = "../../rust-windowing/glutin/glutin", default-features = false, features = ["wayland"] }
glutin_egl_sys = { git = "https://github.com/chrisduerr/glutin", branch = "more_egl" }
glutin = { git = "https://github.com/chrisduerr/glutin", branch = "more_egl", default-features = false, features = ["wayland"] }
raw-window-handle = "0.5.2"
smithay-client-toolkit = { version = "0.18.1", default-features = false, features = ["xkbcommon"] }
thiserror = "1.0.57"
Expand Down

0 comments on commit 4120100

Please sign in to comment.