rust-next #22
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: rust-next | |
permissions: | |
contents: read | |
on: | |
schedule: | |
- cron: '3 3 3 * *' | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
CLICOLOR: 1 | |
jobs: | |
test: | |
name: Test | |
strategy: | |
matrix: | |
build: [stable, linux, windows, mac, nightly, minimal, default, next] | |
include: | |
- build: stable | |
os: ubuntu-latest | |
rust: "stable" | |
features: "full" | |
- build: linux | |
os: ubuntu-latest | |
rust: "beta" | |
features: "full" | |
- build: windows | |
os: windows-latest | |
rust: "beta" | |
features: "full" | |
- build: mac | |
os: macos-latest | |
rust: "beta" | |
features: "full" | |
- build: nightly | |
os: ubuntu-latest | |
rust: "nightly" | |
features: "full" | |
- build: minimal | |
os: ubuntu-latest | |
rust: "stable" | |
features: "minimal" | |
- build: default | |
os: ubuntu-latest | |
rust: "stable" | |
features: "default" | |
- build: next | |
os: ubuntu-latest | |
rust: "stable" | |
features: "next" | |
continue-on-error: ${{ matrix.rust != 'stable' }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: make build-${{matrix.features}} | |
- name: Test | |
run: make test-${{matrix.features}} | |
- name: Test (benches) | |
run: make test-${{matrix.features}} ARGS='--workspace --benches' | |
- name: Test (ultra-minimal) | |
if: matrix.build == 'minimal' | |
run: make test-minimal ARGS='--manifest-path Cargo.toml' | |
- name: Test dynamic completions | |
run: cargo test -p clap_complete -F unstable-dynamic | |
latest: | |
name: "Check latest dependencies" | |
strategy: | |
matrix: | |
build: [stable] | |
include: | |
- build: stable | |
os: ubuntu-latest | |
rust: "stable" | |
features: "full" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Update dependencues | |
run: cargo update | |
- name: Build | |
run: make build-${{matrix.features}} | |
- name: Test | |
run: make test-${{matrix.features}} | |
- name: Test (benches) | |
run: make test-${{matrix.features}} ARGS='--workspace --benches' | |
- name: Test (ultra-minimal) | |
if: matrix.build == 'minimal' | |
run: make test-minimal ARGS='--manifest-path Cargo.toml' | |
- name: Test dynamic completions | |
run: cargo test -p clap_complete -F unstable-dynamic |