Skip to content

update CI to use non-deprecated actions #78

update CI to use non-deprecated actions

update CI to use non-deprecated actions #78

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: dtolnay/rust-toolchain@${{ matrix.toolchain }}

Check failure on line 49 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 49, Col: 13): Unrecognized named-value: 'matrix'. Located at position 1 within expression: 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: dtolnay/rust-toolchain@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