Skip to content
Open
Changes from all commits
Commits
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
33 changes: 33 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Cargo Tests

on:
- push
- pull_request

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
- macos-latest
- ubuntu-latest
toolchain:
- stable
- beta
- nightly
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install ${{ matrix.toolchain}} Rust toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- if: matrix.os == 'ubuntu-latest'
name: Install Linux build dependencies
run: sudo apt-get -yq install libgtk-3-dev libudev-dev
- name: Run cargo tests
run: cargo test --verbose