Skip to content

Merge pull request #6 from ksk001100/feature/upgrade-tokio-1.32 #22

Merge pull request #6 from ksk001100/feature/upgrade-tokio-1.32

Merge pull request #6 from ksk001100/feature/upgrade-tokio-1.32 #22

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Rust ${{ matrix.os }} ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build
- name: Run tests
run: cargo test
continue-on-error: ${{ matrix.rust == 'nightly' }}
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
- run: cargo fmt -- --check