Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Comment thread
kybe236 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on:
push:
pull_request:

permissions:
contents: read

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
fmt:
name: 'Format (rustfmt)'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Rust (stable + rustfmt)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: cargo fmt --check
run: cargo fmt --all --check

test:
name: 'Test / Clippy (${{ matrix.rust }}, ${{ matrix.os }})'
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- stable
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libglib2.0-dev pkg-config libgtk-3-dev libxdo-dev libappindicator3-dev

- name: Install Rust (${{ matrix.rust }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: cargo clippy
run: cargo clippy --all-targets

- name: cargo test
run: cargo test --all-targets
25 changes: 0 additions & 25 deletions .github/workflows/merges.yml

This file was deleted.

165 changes: 165 additions & 0 deletions Cargo.lock

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

Loading
Loading