Merge pull request #295 from Swatinem/intermediate-vec #19
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
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
# MSRV and nightly | |
version: [1.60.0, nightly] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set toolchain | |
run: | | |
rustup set profile minimal | |
rustup override set ${{ matrix.version }} | |
- uses: Swatinem/rust-cache@v2.0.0 | |
- name: Rustfmt check | |
if: matrix.version == '1.60.0' | |
run: | | |
rustup component add rustfmt | |
cargo fmt --all -- --check | |
- name: Run `cargo test` on workspace | |
run: cargo test --workspace --exclude=phf_codegen_test | |
- name: phf_macros UI test | |
if: matrix.version == '1.60.0' | |
working-directory: phf_macros_tests | |
run: cargo test -- --ignored --test-threads=1 | |
- name: phf_codegen test | |
run: cargo test -p phf_codegen_test | |
- name: no_std build check | |
working-directory: phf | |
run: cargo build --no-default-features | |
- name: unicase + macros features check | |
run: cargo check -p unicase-example |