* Default to building with both x11 and wayland * Update CI to include tests and building for wayland and x11
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: build
|
|
|
|
on:
|
|
#push:
|
|
#branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt-get update && sudo apt-get install libgtk-3-dev libgtk-layer-shell-dev
|
|
- name: Set up
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
override: true
|
|
components: rustfmt
|
|
- uses: actions/checkout@v2
|
|
- uses: Swatinem/rust-cache@v1
|
|
- uses: r7kamura/rust-problem-matchers@v1
|
|
- name: Check formatting
|
|
run: cargo fmt -- --check
|
|
- name: Check with default features
|
|
run: cargo check
|
|
- name: Run tests
|
|
run: cargo test
|
|
- name: Build x11 only
|
|
run: cargo check --no-default-features --features=x11
|
|
- name: Build wayland only
|
|
run: cargo check --no-default-features --features=wayland
|
|
- name: Build no-backend
|
|
run: cargo check --no-default-features
|