made libusb types public and opaque #73
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: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
linux: | |
strategy: | |
matrix: | |
include: | |
- name: MSRV (minimal) | |
toolchain: 1.34.0 | |
features: "" | |
- name: MSRV (vendored) | |
toolchain: 1.34.0 | |
features: vendored | |
native_deps: libusb-1.0-0-dev | |
- name: MSRV (libusb1-sys) | |
toolchain: 1.34.0 | |
features: libusb1-sys | |
- name: vendored,libusb1-sys | |
toolchain: 1.34.0 | |
features: libusb1-sys,vendored | |
native_deps: libusb-1.0-0-dev | |
# Ideally this would be a nonfatal check, but GHA does not support that | |
# ( https://github.com/actions/toolkit/issues/399 ) | |
#- name: MSRV (bindgen) | |
# toolchain: 1.41.1 | |
# features: bindgen | |
- name: Smoke (bindgen) | |
toolchain: stable | |
features: bindgen | |
- name: Nightly | |
toolchain: nightly | |
features: libusb1-sys,vendored,bindgen | |
native_deps: libusb-1.0-0-dev | |
fail-fast: false | |
name: ${{ matrix.name }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1.0.3 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
profile: minimal | |
default: true | |
- if: ${{ matrix.native_deps || 'libftdi1-dev' }} | |
name: Install native packages (${{ matrix.native_deps || 'libftdi1-dev' }}) | |
run: sudo apt-get install ${{ matrix.native_deps || 'libftdi1-dev' }} | |
- run: cargo build --verbose --features=${{ matrix.features }} | |
- run: cargo test --verbose --features=${{ matrix.features }} | |
windows-msvc: | |
runs-on: windows-latest | |
env: | |
VCPKGRS_DYNAMIC: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1.0.3 | |
with: | |
toolchain: 1.34.0 | |
target: x86_64-pc-windows-msvc | |
profile: minimal | |
default: true | |
- name: Restore / setup vcpkg and libftdi1 | |
uses: lukka/run-vcpkg@v7 | |
with: | |
vcpkgArguments: 'libftdi1:x64-windows' | |
vcpkgGitCommitId: '7dbc05515b44bf54d2a42b4da9d1e1f910868b86' # Match probe-rs after cmake 3.21 problems | |
- name: Build and run tests (pregenerated) | |
run: cargo test --verbose |