Skip to content

CI

CI #197

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 19 * * 3'
env:
CARGO_TERM_COLOR: always
# Miri breaks frequently so we pin it to a specific nightly version.
MIRI_TOOLCHAIN: nightly-2022-07-18
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
default: true
components: rustfmt, rust-src
- name: Install miri
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.MIRI_TOOLCHAIN }}
override: false
default: false
components: miri-preview
- name: Install cargo plugins
run: |
cargo install cargo-rdme
cargo install cargo-deadlinks
cargo install cargo-criterion
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Check everything
run: bash ./tools/check.sh
- name: Code coverage
if: ${{ runner.os == 'Linux' }}
run: |
cargo install cargo-tarpaulin
./tools/codecov.sh --xml
bash <(curl -s https://codecov.io/bash)