Restore Windows compatibility (#30) #176
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
name: CI | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: KyleMayes/install-llvm-action@v2 | |
if: matrix.os == 'windows-latest' | |
with: | |
version: "18.1" | |
directory: ${{ runner.temp }}/llvm | |
- name: Set LIBCLANG_PATH | |
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | |
if: matrix.os == 'windows-latest' | |
- uses: actions/checkout@main | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- run: cargo fmt --all --check -- --config=imports_granularity=Crate | |
- run: cargo install cargo-hack | |
- run: cargo hack clippy --workspace --each-feature -- -D warnings | |
- run: cargo hack test --workspace --each-feature |