Add minimum rust version support in workflow
This commit is contained in:
parent
13298b8d61
commit
76e07300d0
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
|
@ -9,8 +9,15 @@ on:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
name: Run tests - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- { rust: stable, os: ubuntu-latest }
|
||||||
|
- { rust: 1.49.0, os: ubuntu-latest }
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -18,7 +25,7 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: ${{ matrix.rust }}
|
||||||
override: true
|
override: true
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
- name: Check format
|
- name: Check format
|
||||||
|
@ -34,7 +41,24 @@ jobs:
|
||||||
- name: Clean
|
- name: Clean
|
||||||
run: cargo clean
|
run: cargo clean
|
||||||
|
|
||||||
# examples
|
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
|
||||||
- name: Check examples format
|
- name: Check examples format
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
working-directory: ./examples
|
working-directory: ./examples
|
||||||
|
@ -48,10 +72,22 @@ jobs:
|
||||||
run: cargo clean
|
run: cargo clean
|
||||||
working-directory: ./examples
|
working-directory: ./examples
|
||||||
|
|
||||||
# build on nightly
|
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
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: ${{ matrix.rust }}
|
||||||
override: true
|
override: true
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
- name: Build on nightly with all features
|
- name: Build on nightly with all features
|
||||||
|
|
Loading…
Reference in New Issue
Block a user