Skip to content

Merge pull request #300 from JohnTitor/msrv-1.61 #166

Merge pull request #300 from JohnTitor/msrv-1.61

Merge pull request #300 from JohnTitor/msrv-1.61 #166

Workflow file for this run

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.61.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.61.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.61.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