Skip to content

Document and start testing the MSRV #12

Document and start testing the MSRV

Document and start testing the MSRV #12

Workflow file for this run

env:
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
name: CI
on: [push, pull_request]
jobs:
test:
name: Test
strategy:
matrix:
os: [windows-2025, ubuntu-24.04, macos-15]
rust: [stable, nightly]
include:
- os: ubuntu-24.04
rust: beta
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- run: cargo test
- run: cargo doc
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
msrv="$(cargo metadata --format-version=1 |
jq -r '.packages[] | select(.name == "getopts").rust_version'
)"
rustup update "$msrv" && rustup default "$msrv"
- run: |
cargo update unicode-width --precise 0.1.8
cargo check