Skip to content

Version bump.

Version bump. #92

Workflow file for this run

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