2020-03-01 13:56:14 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-15 03:15:30 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-03-01 13:56:14 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-04-03 05:09:58 +00:00
|
|
|
tests:
|
|
|
|
name: Run tests - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { rust: stable, os: ubuntu-latest }
|
2021-04-03 05:34:27 +00:00
|
|
|
- { rust: 1.49.0, os: ubuntu-latest }
|
2020-03-01 13:56:14 +00:00
|
|
|
steps:
|
2020-10-16 01:35:17 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2020-09-06 10:29:46 +00:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-04-03 05:09:58 +00:00
|
|
|
toolchain: ${{ matrix.rust }}
|
2020-09-06 10:29:46 +00:00
|
|
|
override: true
|
2021-03-22 02:39:17 +00:00
|
|
|
- name: Build with all features
|
|
|
|
run: cargo build --all-features
|
2020-03-20 15:32:02 +00:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --all --verbose
|
2020-03-01 13:56:14 +00:00
|
|
|
- name: Run tests
|
2021-03-22 02:55:28 +00:00
|
|
|
run: cargo test --all --all-features
|
2021-03-23 03:58:45 +00:00
|
|
|
- name: Clean
|
|
|
|
run: cargo clean
|
2020-10-04 23:05:32 +00:00
|
|
|
|
2021-04-03 05:34:27 +00:00
|
|
|
rustfmt:
|
|
|
|
name: Run rustfmt - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { rust: stable, os: ubuntu-latest }
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
override: true
|
|
|
|
components: rustfmt
|
|
|
|
- name: Check format
|
|
|
|
run: cargo fmt --all -- --check
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Run clippy - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { rust: stable, os: ubuntu-latest }
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
override: true
|
|
|
|
components: clippy
|
|
|
|
- name: Check with clippy
|
|
|
|
run: cargo clippy --all
|
|
|
|
|
2021-04-03 05:09:58 +00:00
|
|
|
examples:
|
|
|
|
name: Build examples - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { rust: stable, os: ubuntu-latest }
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
override: true
|
|
|
|
components: clippy, rustfmt
|
2020-10-16 01:35:17 +00:00
|
|
|
- name: Check examples format
|
|
|
|
run: cargo fmt --all -- --check
|
|
|
|
working-directory: ./examples
|
|
|
|
- name: Check examples with clippy
|
|
|
|
run: cargo clippy --all
|
|
|
|
working-directory: ./examples
|
2020-10-16 02:45:27 +00:00
|
|
|
- name: Build examples
|
2020-10-16 01:35:17 +00:00
|
|
|
run: cargo build --all --verbose
|
|
|
|
working-directory: ./examples
|
2021-03-23 03:58:45 +00:00
|
|
|
- name: Clean examples
|
|
|
|
run: cargo clean
|
|
|
|
working-directory: ./examples
|
2020-10-16 01:35:17 +00:00
|
|
|
|
2021-04-03 05:09:58 +00:00
|
|
|
build-nightly:
|
|
|
|
name: Build nightly - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { rust: nightly, os: ubuntu-latest }
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2021-02-13 01:59:18 +00:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-04-03 05:09:58 +00:00
|
|
|
toolchain: ${{ matrix.rust }}
|
2021-02-13 01:59:18 +00:00
|
|
|
override: true
|
2021-03-22 02:39:17 +00:00
|
|
|
- name: Build on nightly with all features
|
|
|
|
run: cargo build --all-features
|
2021-02-13 01:59:18 +00:00
|
|
|
- name: Build on nightly
|
|
|
|
run: cargo build --all --verbose
|