mirror of
https://github.com/clap-rs/clap
synced 2024-11-15 00:57:15 +00:00
72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
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@v3
|
|
- 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'
|