Version bump. #92
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, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install latest Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Lint | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy | |
- name: Install re2c (Ubuntu) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: sudo apt-get install -y re2c | |
- name: Install re2c (macOS) | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: brew install re2c | |
- name: Install re2c (Windows) | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: choco install re2c | |
- name: Install tarpaulin | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: cargo install cargo-tarpaulin | |
- name: Build and Test (Coverage) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: cargo tarpaulin --out Xml | |
- name: Build and Test (No Coverage) | |
if: ${{ matrix.os != 'ubuntu-latest' }} | |
run: cargo test | |
- name: Build and Test (With re2c) | |
run: cargo test --features re2c | |
- name: Upload coverage to Codecov | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: codecov/codecov-action@v3 |