|
|
@ -7,12 +7,13 @@ on:
|
|
|
|
- staging
|
|
|
|
- staging
|
|
|
|
- trying
|
|
|
|
- trying
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
RUSTFLAGS: -Dwarnings
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
build_and_test:
|
|
|
|
name: Build and test
|
|
|
|
name: Build and test
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
env:
|
|
|
|
|
|
|
|
RUSTFLAGS: -Dwarnings
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
@ -48,8 +49,6 @@ jobs:
|
|
|
|
check_fmt_and_docs:
|
|
|
|
check_fmt_and_docs:
|
|
|
|
name: Checking fmt and docs
|
|
|
|
name: Checking fmt and docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
|
|
|
|
RUSTFLAGS: -Dwarnings
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
|
|
|
@ -81,20 +80,11 @@ jobs:
|
|
|
|
clippy_check:
|
|
|
|
clippy_check:
|
|
|
|
name: Clippy check
|
|
|
|
name: Clippy check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# TODO: There is a lot of warnings
|
|
|
|
|
|
|
|
# env:
|
|
|
|
|
|
|
|
# RUSTFLAGS: -Dwarnings
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- id: component
|
|
|
|
- name: Install rust
|
|
|
|
uses: actions-rs/components-nightly@v1
|
|
|
|
run: rustup update beta && rustup default beta
|
|
|
|
with:
|
|
|
|
- name: Install clippy
|
|
|
|
component: clippy
|
|
|
|
run: rustup component add clippy
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
- name: clippy
|
|
|
|
with:
|
|
|
|
run: cargo clippy --all --features unstable
|
|
|
|
toolchain: ${{ steps.component.outputs.toolchain }}
|
|
|
|
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- run: rustup component add clippy
|
|
|
|
|
|
|
|
- uses: actions-rs/clippy-check@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|