mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 20:53:19 +00:00
dc26f7ba9f
- Add section to README - Run ci tests with this min version in addition of stable to track changes that would require a min rustc version bump.
77 lines
2.1 KiB
YAML
77 lines
2.1 KiB
YAML
on: [push, pull_request]
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
linux:
|
|
name: Linux
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust: ["1.44.0", "stable"]
|
|
steps:
|
|
- name: "Install dependencies"
|
|
run: sudo apt-get install libncurses5-dev
|
|
- uses: actions/checkout@v1
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: default
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
- name: "Format"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
- name: "Check"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --examples
|
|
- name: "Check (crossterm)"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --no-default-features --features=crossterm --example crossterm_demo
|
|
- name: "Check (rustbox)"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features --features=rustbox --example rustbox_demo
|
|
- name: "Check (curses)"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --no-default-features --features=curses --example curses_demo
|
|
- name: "Test"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
- name: "Clippy"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: --all-targets --all-features -- -D warnings
|
|
windows:
|
|
name: Windows
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
rust: ["1.44.0", "stable"]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: default
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
- name: "Check (crossterm)"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --no-default-features --features=crossterm --example crossterm_demo
|
|
- name: "Test (crossterm)"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features --features=crossterm --tests --examples
|