Search feature #217
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [workflow_dispatch, push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Linux build dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update -y | |
sudo apt install -y build-essential gnome-keyring | |
- name: Fetch head | |
uses: actions/checkout@v4 | |
- name: Install Rust Toolchain (stable) | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Build (debug) | |
run: cargo build --verbose --all-targets | |
- name: Linux tests | |
if: matrix.os == 'ubuntu-latest' | |
run: dbus-run-session -- bash linux-test.sh | |
- name: Non-linux tests | |
if: matrix.os != 'ubuntu-latest' | |
run: cargo test --verbose | |
- name: Format check | |
run: cargo fmt --all -- --check | |
- name: Clippy check | |
run: cargo clippy -- -D warnings |