Skip to content

update CI to use non-deprecated actions #80

update CI to use non-deprecated actions

update CI to use non-deprecated actions #80

Workflow file for this run

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@v4
with:
submodules: true
fetch-depth: 0
- uses: moonrepo/setup-rust@v1
with:
channel: ${{ matrix.toolchain }}
- 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@v4
with:
fetch-depth: 0
- uses: moonrepo/setup-rust@v1
with:
channel: 1.34.0
- 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