clap/.github/workflows/rust-next.yml

75 lines
1.8 KiB
YAML
Raw Normal View History

2021-11-17 19:55:28 +00:00
name: rust-next
2023-03-29 19:33:22 +00:00
permissions:
contents: read
2021-11-17 19:55:28 +00:00
on:
schedule:
- cron: '3 3 3 * *'
2023-03-29 19:33:22 +00:00
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
2021-11-17 19:55:28 +00:00
jobs:
test:
name: Test
strategy:
matrix:
build: [stable, linux, windows, mac, nightly, minimal, default, next]
2021-11-17 19:55:28 +00:00
include:
- build: stable
2021-11-17 19:55:28 +00:00
os: ubuntu-latest
rust: "stable"
features: "full"
- build: linux
os: ubuntu-latest
rust: "beta"
features: "full"
2021-11-17 19:55:28 +00:00
- build: windows
os: windows-latest
rust: "beta"
2021-11-17 19:55:28 +00:00
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"
2021-11-17 19:55:28 +00:00
continue-on-error: ${{ matrix.rust != 'stable' }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-11-17 19:55:28 +00:00
- name: Install Rust
2023-03-29 19:33:22 +00:00
uses: dtolnay/rust-toolchain@stable
2021-11-17 19:55:28 +00:00
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
2021-11-17 19:55:28 +00:00
- name: Build
run: make build-${{matrix.features}}
- name: Test
run: make test-${{matrix.features}}
2021-12-07 14:24:13 +00:00
- 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'
2023-07-26 16:40:03 +00:00
- name: Test dynamic completions
run: cargo test -p clap_complete -F unstable-dynamic