Skip to content

CI

CI #46

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cargo fmt -- --check
build:
name: Build
needs: [style]
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
matrix:
name:
- linux / stable
- linux / beta
- linux / nightly
- windows
- macOS
include:
- name: linux / beta
rust: beta
- name: linux / nightly
rust: nightly
- name: windows
os: windows-latest
- name: macOS
os: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust || 'stable' }}
- name: Test
run: cargo test