Skip to content

Merge #77

Merge #77 #341

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
- staging # for bors
- trying # for bors
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 0"
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
--no-install-recommends \
--allow-unauthenticated \
libdbus-1-dev \
libglib2.0-dev \
libpango1.0-dev \
pkg-config
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Build the project
uses: actions-rs/cargo@v1
with:
command: check
args: --locked --verbose
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
--no-install-recommends \
--allow-unauthenticated \
libdbus-1-dev \
libglib2.0-dev \
libpango1.0-dev \
pkg-config
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings