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
|
2022-04-15 14:51:52 +00:00
|
|
|
|
2021-11-17 19:55:28 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-03-02 15:15:28 +00:00
|
|
|
build: [stable, linux, windows, mac, nightly, minimal, default, next]
|
2021-11-17 19:55:28 +00:00
|
|
|
include:
|
2021-12-07 20:51:28 +00:00
|
|
|
- build: stable
|
2021-11-17 19:55:28 +00:00
|
|
|
os: ubuntu-latest
|
|
|
|
rust: "stable"
|
|
|
|
features: "full"
|
2021-12-07 20:51:28 +00:00
|
|
|
- build: linux
|
|
|
|
os: ubuntu-latest
|
|
|
|
rust: "beta"
|
|
|
|
features: "full"
|
2021-11-17 19:55:28 +00:00
|
|
|
- build: windows
|
|
|
|
os: windows-latest
|
2021-12-07 20:51:28 +00:00
|
|
|
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"
|
2022-03-02 15:15:28 +00:00
|
|
|
- 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
|
2022-05-04 13:09:07 +00:00
|
|
|
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 }}
|
2022-12-01 18:13:33 +00:00
|
|
|
- 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'
|
2021-12-07 14:29:03 +00:00
|
|
|
- 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
|