feat!: version third party crate feature flags #490
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
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '00 18 * * *' | |
name: Continuous integration | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable, beta, 1.64.0] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: check --no-default-features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features | |
- name: check --no-default-features --features alloc | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features alloc | |
- name: check --no-default-features --features collections | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features collections | |
- name: check --no-default-features --features std | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features std | |
- name: check --no-default-features --features derive | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features derive | |
- name: check --no-default-features --features smol_str-02 | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features smol_str-02 | |
- name: check --no-default-features --features smallvec-1 | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features smallvec-1 | |
- name: check --no-default-features --features smartstring-1 | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features smartstring-1 | |
- name: check --no-default-features --features ahash-08 | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features ahash-08 | |
- name: check --no-default-features --features chrono-04 | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features chrono-04 | |
- name: check --no-default-features --features chrono-clock-04 | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --no-default-features --features chrono-clock-04 | |
- name: check --all-features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --all-features | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable, beta, 1.64.0] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: build --workspace --all-features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --workspace --all-features | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [ stable, beta, 1.64.0 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: test --workspace --all-features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --all-features | |
fmt: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [ stable, beta, 1.64.0 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt | |
- name: fmt --all -- --check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [ stable, beta, 1.64.0 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: clippy | |
- name: clippy --workspace --all-features --tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --workspace --all-features --tests -- -Dwarnings | |
cargo-deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
log-level: warn | |
command: check | |
arguments: --all-features |