Skip to content

Run MSRV with a lock file #765

Run MSRV with a lock file

Run MSRV with a lock file #765

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 6 * * *"
env:
RUST_BACKTRACE: 1
CARGO_TERM_VERBOSE: true
CARGO_TERM_COLOR: always
jobs:
cargo-test-stable-beta:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
toolchain: [stable, beta]
profile: ['', --release]
features: ['', '--all-features']
exclude:
# capture-stream is not supported on Windows.
- os: windows-latest
features: '--all-features'
uses: ./.github/workflows/ci-steps.yml
with:
os: ${{ matrix.os }}
toolchain: ${{ matrix.toolchain }}
profile: ${{ matrix.profile }}
features: ${{ matrix.features }}
secrets:
NPCAP_OEM_PASSWORD: ${{ secrets.NPCAP_OEM_PASSWORD }}
NPCAP_OEM_USERNAME: ${{ secrets.NPCAP_OEM_USERNAME }}
cargo-test-msrv:
strategy:
matrix:
# rust < 1.54 does not work on macos >= 12:
# https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20How.20can.20I.20fix.20Rust.201.2E53.2E0.20or.20earlier.20to.20run.20on.20macOS.2012.2E6.3F/near/299263887
os: [windows-latest, ubuntu-latest, macos-11]
toolchain: ["1.46.0"]
profile: ['', --release]
# capture-stream is not supported on compiler versions too old for Tokio.
features: ['']
with:
os: ${{ matrix.os }}
toolchain: ${{ matrix.toolchain }}
profile: ${{ matrix.profile }}
features: ${{ matrix.features }}
secrets:
NPCAP_OEM_PASSWORD: ${{ secrets.NPCAP_OEM_PASSWORD }}
NPCAP_OEM_USERNAME: ${{ secrets.NPCAP_OEM_USERNAME }}
steps:

Check failure on line 58 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 58, Col: 5): Unexpected value 'steps' .github/workflows/ci.yml (Line: 40, Col: 5): Required property is missing: uses
- name: Create MSRV lock file
run: cp msrv.lock Cargo.lock
- uses: ./.github/workflows/ci-steps.yml
# nightly check is performed on ubuntu only.
cargo-test-nightly:
strategy:
matrix:
os: [ubuntu-latest]
toolchain: [nightly]
profile: ['', --release]
features: ['', '--all-features']
uses: ./.github/workflows/ci-steps.yml
with:
os: ${{ matrix.os }}
toolchain: ${{ matrix.toolchain }}
profile: ${{ matrix.profile }}
features: ${{ matrix.features }}
secrets:
NPCAP_OEM_PASSWORD: ${{ secrets.NPCAP_OEM_PASSWORD }}
NPCAP_OEM_USERNAME: ${{ secrets.NPCAP_OEM_USERNAME }}