update clap #17
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: CI-version | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
tests-1: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
toolchain: | |
- stable | |
- nightly | |
target: | |
- x86_64-unknown-linux-gnu | |
- x86_64-unknown-linux-musl | |
features: | |
- | |
- --features json | |
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install musl-tools (Linux) | |
run: | | |
sudo apt update | |
sudo apt install musl-tools | |
if: matrix.target == 'x86_64-unknown-linux-musl' | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: ${{ matrix.target }} | |
- run: cargo test --release --target ${{ matrix.target }} ${{ matrix.features }} | |
- run: cargo doc --release --target ${{ matrix.target }} ${{ matrix.features }} | |
tests-2: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- windows-latest | |
toolchain: | |
- stable | |
- nightly | |
features: | |
- | |
- --features json | |
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: cargo test --release ${{ matrix.features }} | |
- run: cargo doc --release ${{ matrix.features }} | |
MSRV-1: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
toolchain: | |
- "1.70" | |
target: | |
- x86_64-unknown-linux-gnu | |
- x86_64-unknown-linux-musl | |
features: | |
- | |
- --features json | |
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install musl-tools (Linux) | |
run: | | |
sudo apt update | |
sudo apt install musl-tools | |
if: matrix.target == 'x86_64-unknown-linux-musl' | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: ${{ matrix.target }} | |
- run: cargo test --release --lib --bins --target ${{ matrix.target }} ${{ matrix.features }} | |
MSRV-2: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- windows-latest | |
toolchain: | |
- "1.70" | |
features: | |
- | |
- --features json | |
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: cargo test --release --lib --bins ${{ matrix.features }} |