Skip to content

Remove rusty_fork in favor of handrolled solution #24

Remove rusty_fork in favor of handrolled solution

Remove rusty_fork in favor of handrolled solution #24

Workflow file for this run

on:
push:
branches: [ main, auto, canary ]
pull_request:
branches:
- main
name: CI
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
with:
# By default actions/checkout checks out a merge commit. Check out the PR head instead.
# https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
- name: Lint (clippy) async-std
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features --features async-std-runtime --all-targets
- name: Lint (clippy) tokio
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features --features async-tokio-runtime --all-targets
- name: Lint (clippy) default
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets
- name: Lint (rustfmt)
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust-version: [ stable ]
fail-fast: false
env:
RUSTFLAGS: -D warnings
steps:
# Checkout the code
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
# cargo build
- name: Build all targets with default features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets
- name: Build all targets with async-std
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --no-default-features --features async-std-runtime
- name: Build all targets with tokio
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --no-default-features --features async-tokio-runtime
- name: Test async-std with cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --no-default-features --features async-std-runtime
- name: Test tokio with cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --no-default-features --features async-tokio-runtime
- name: Test defaults with cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
# cargo nextest
- name: Install nextest from crates.io
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-nextest
- name: Test async-std with nextest from crates.io
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --no-default-features --features async-std-runtime
- name: Test tokio with nextest from crates.io
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --no-default-features --features async-tokio-runtime
- name: Test defaults with nextest from crates.io
uses: actions-rs/cargo@v1
with:
command: nextest
args: run