Safer handling of DeviceType value coming from FFI (#90) #304
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: Test CI | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Build Environment | |
run: | | |
sudo apt update | |
sudo apt install libudev-dev libhidapi-dev | |
- name: Setup rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- uses: davidB/rust-cargo-make@v1 | |
with: | |
version: 0.37.23 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: cargo make test-flow | |
- name: Verify generated headers | |
run: cargo make verify-headers |