Skip to content

Have a min and max MSRV (1.61.0 - 1.63.0) #370

Have a min and max MSRV (1.61.0 - 1.63.0)

Have a min and max MSRV (1.61.0 - 1.63.0) #370

Workflow file for this run

on:
pull_request:
branches:
- master
- "[0-9]+.[0-9]+"
push:
branches:
- staging
- trying
name: Continuous integration
jobs:
compile_and_test_min_msrv:
name: Compile and test min MSRV
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy
- name: Clippy
run: cargo clippy -v -p palette
- name: Tests
run: cargo test -v -p palette
compile_and_test_max_msrv:
name: Compile and test max MSRV
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy
- uses: taiki-e/install-action@cargo-hack
- name: find-crate check
run: cargo clippy -v -p palette --no-default-features --features "std find-crate"
- name: Default check
run: cargo clippy -v -p palette
- name: Check all features
run: cargo clippy -v -p palette --all-features
- name: Test all features
run: cargo test -v -p palette --all-features
- name: Test each feature
run: cargo hack test --tests --feature-powerset --ignore-private --skip default,find-crate --optional-deps libm --depth 2
integration_tests:
name: integration tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run integration tests
run: cargo test -v -p integration_tests --all-features
check_stable_beta_nightly:
name: Quick check
strategy:
matrix:
toolchain: [beta, stable, nightly]
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- uses: taiki-e/install-action@cargo-hack
- name: Check all features
run: cargo clippy -v -p palette --all-features
- name: Check each feature with libm
run: cargo hack clippy --each-feature --ignore-private --features libm --skip default,find-crate --ignore-unknown-features
- name: Check each feature with std
run: cargo hack clippy --each-feature --ignore-private --features std --skip default,find-crate --optional-deps libm --ignore-unknown-features
no_std:
name: "Test #[no_std]"
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
targets: thumbv6m-none-eabi
- name: "Build with #[no_std]"
run: cargo build -v -p no_std_test --all-features --target thumbv6m-none-eabi
miri:
name: Miri tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- name: Unit tests
run: cargo miri test -p palette --lib --features "bytemuck" -- -Z unstable-options --report-time
- name: Documentation tests
run: cargo miri test -p palette --doc --features "bytemuck" -- -Z unstable-options --report-time
documentation:
name: Documentation
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: "Generate documentation"
run: cargo doc -p palette --all-features
# Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
#
# ALL THE PREVIOUS JOBS NEEDS TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
ci-success:
name: ci
if: success()
needs:
- compile_and_test_msrv

Check failure on line 133 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Continuous integration

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 133, Col: 9): Job 'ci-success' depends on unknown job 'compile_and_test_msrv'.
- integration_tests
- check_stable_beta_nightly
- no_std
- miri
- documentation
runs-on: ubuntu-latest
steps:
- name: Mark the job as a success
run: exit 0