2020-08-12 17:04:50 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
name: Continuous integration
|
|
|
|
|
|
|
|
jobs:
|
2021-12-19 12:42:19 +01:00
|
|
|
style:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-01-24 22:36:19 +01:00
|
|
|
toolchain: nightly-2022-01-17
|
2021-12-19 12:42:19 +01:00
|
|
|
override: true
|
|
|
|
components: rustfmt
|
|
|
|
|
|
|
|
- name: fmt
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|
|
|
|
|
2020-08-12 17:04:50 +02:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
2022-03-25 10:12:26 +01:00
|
|
|
- nightly
|
2020-08-12 17:04:50 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- rust: stable
|
2022-03-25 10:12:26 +01:00
|
|
|
toolchain: stable
|
2021-01-26 12:52:50 +01:00
|
|
|
features: "--features full"
|
2020-08-12 17:04:50 +02:00
|
|
|
- rust: beta
|
2022-03-25 10:12:26 +01:00
|
|
|
toolchain: beta
|
2021-01-26 12:52:50 +01:00
|
|
|
features: "--features full"
|
2022-03-25 10:12:26 +01:00
|
|
|
- rust: nightly
|
|
|
|
toolchain: nightly-2022-01-17
|
2020-08-12 17:04:50 +02:00
|
|
|
features: "--all-features"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-03-25 10:12:26 +01:00
|
|
|
toolchain: ${{ matrix.toolchain }}
|
2020-08-12 17:04:50 +02:00
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
args: --verbose ${{ matrix.features }}
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --verbose ${{ matrix.features }}
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-01-24 22:36:19 +01:00
|
|
|
toolchain: nightly-2022-01-17
|
2020-08-12 17:04:50 +02:00
|
|
|
override: true
|
|
|
|
components: clippy
|
|
|
|
|
|
|
|
- name: clippy
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
2021-03-15 21:50:09 +01:00
|
|
|
args: --all-targets --all-features -- -D warnings
|