Merge pull request #146 from anil9/master #77
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: Build | |
on: push | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
rust: [stable] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- name: Setup Rust | |
uses: hecrj/setup-rust-action@master | |
with: | |
rust-version: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- name: Installing LibClang on Windows | |
shell: pwsh | |
if: matrix.os == 'windows-latest' | |
run: choco install -y llvm | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Build the crate | |
run: cargo build --release | |
- name: Run tests | |
if: matrix.os != 'windows-latest' | |
run: cargo test --verbose |