Skip to content

Commit

Permalink
Update the CI configuration (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem authored Nov 26, 2021
1 parent 0fa56cc commit 633debe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 1,15 * *"

jobs:
fmt:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
rust: [stable]
os: [ubuntu-latest]

steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@v1
- name: Check format
run: |
cargo fmt -- --check
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rust: [stable, beta, nightly]
rust: [stable, beta, nightly, 1.51]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@v1
toolchain: ${{ matrix.rust }}
- name: Run tests
run: |
cargo test --all-features
Expand All @@ -44,10 +44,12 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
rust-version: stable
toolchain: stable
components: clippy
- uses: actions/checkout@v1
- name: Clippy
run: cargo clippy -- -D warnings
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ appears to be unmaintained. The `1.0` release of `imbl` is compatible with the

* [API docs](https://docs.rs/imbl/)

## Minimum supported rust version

This crate supports rust 1.51 and later. As const generics become more useful,
the minimum supported rust version will increase.

## Licence

Copyright 2017--2021 Bodil Stokke
Expand Down

0 comments on commit 633debe

Please sign in to comment.