mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-20 13:59:00 +01:00
fix CI
This commit is contained in:
parent
c854081dce
commit
d4ababf99f
1 changed files with 34 additions and 4 deletions
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
|
@ -23,6 +23,11 @@ env:
|
||||||
# - src/lib.rs
|
# - src/lib.rs
|
||||||
# - down below in a matrix
|
# - down below in a matrix
|
||||||
rust_msrv: 1.58.0
|
rust_msrv: 1.58.0
|
||||||
|
# When updating this, also update:
|
||||||
|
# - down below in a matrix
|
||||||
|
#
|
||||||
|
# This is needed because some of our tests can't run on MSRV.
|
||||||
|
rust_msrv_dev: 1.59.0
|
||||||
|
|
||||||
CI: 1
|
CI: 1
|
||||||
|
|
||||||
|
@ -38,6 +43,7 @@ jobs:
|
||||||
- check-examples
|
- check-examples
|
||||||
- clippy
|
- clippy
|
||||||
- doc
|
- doc
|
||||||
|
- msrv
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: exit 0
|
- run: exit 0
|
||||||
|
@ -76,7 +82,7 @@ jobs:
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
- msrv
|
- msrv_dev
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- rust: stable
|
- rust: stable
|
||||||
|
@ -88,8 +94,8 @@ jobs:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
toolchain: nightly-2022-01-17
|
toolchain: nightly-2022-01-17
|
||||||
features: "--all-features"
|
features: "--all-features"
|
||||||
- rust: msrv
|
- rust: msrv_dev
|
||||||
toolchain: 1.58.0
|
toolchain: 1.59.0
|
||||||
features: "--features full"
|
features: "--features full"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -188,3 +194,27 @@ jobs:
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: docs # from .cargo/config.toml
|
command: docs # from .cargo/config.toml
|
||||||
|
|
||||||
|
msrv:
|
||||||
|
name: minimal supported rust version
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Rust ${{ env.rust_msrv }}
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: ${{ env.rust_msrv }}
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
|
- name: Check
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
args: --verbose --features full
|
||||||
|
|
Loading…
Add table
Reference in a new issue