Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 31ebb6d

Browse files
committedMay 4, 2024
chore(workflows): change to not use "actions-rs"
instead use "dtolnay/rust-toolchain" and direct cargo commands
1 parent 40ee05c commit 31ebb6d

6 files changed

+59
-67
lines changed
 

‎.github/workflows/coverage.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ jobs:
1212
steps:
1313
- name: Checkout repository
1414
uses: actions/checkout@v2
15-
- name: Setup rust toolchain
16-
uses: actions-rs/toolchain@v1
15+
- uses: dtolnay/rust-toolchain@stable
1716
with:
1817
toolchain: nightly
19-
override: true
2018
- name: Run tests
21-
uses: actions-rs/cargo@v1
22-
with:
23-
command: test
24-
args: --no-fail-fast --lib --no-default-features --features derive,serialize,with-crossterm
19+
run: cargo test --no-fail-fast --features derive,serialize,ratatui,crossterm --no-default-features
20+
env:
21+
RUST_BACKTRACE: full
2522
env:
2623
CARGO_INCREMENTAL: "0"
2724
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"

‎.github/workflows/crossterm-windows.yml

+12-13
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,18 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
toolchain: stable
17-
override: true
18-
components: rustfmt, clippy
19-
- uses: actions-rs/cargo@v1
20-
with:
21-
command: test
22-
args: --no-fail-fast --no-default-features --features derive,serialize,tui,crossterm
23-
- uses: actions-rs/cargo@v1
24-
with:
25-
command: test
26-
args: --no-fail-fast --no-default-features --features derive,serialize,ratatui,crossterm
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
toolchain: stable
17+
components: rustfmt, clippy
18+
- name: Tests (tui & crossterm)
19+
run: cargo test --no-fail-fast --no-default-features --features derive,serialize,tui,crossterm
20+
env:
21+
RUST_BACKTRACE: full
22+
- name: Tests (ratatui & crossterm)
23+
run: cargo test --no-fail-fast --no-default-features --features derive,serialize,ratatui,crossterm
24+
env:
25+
RUST_BACKTRACE: full
2726
- name: Examples
2827
run: cargo build --all-targets --examples
2928
- name: Format

‎.github/workflows/ratatui_crossterm.yml

+19-20
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,25 @@ name: Ratatui-Crossterm
33
on: [push, pull_request]
44

55
env:
6-
CARGO_TERM_COLOR: always
6+
CARGO_TERM_COLOR: always
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
9+
build:
10+
runs-on: ubuntu-latest
1111

12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
toolchain: stable
17-
override: true
18-
components: rustfmt, clippy
19-
- uses: actions-rs/cargo@v1
20-
with:
21-
command: test
22-
args: --no-fail-fast --features derive,serialize,ratatui,crossterm --no-default-features
23-
- name: Examples
24-
run: cargo build --all-targets --examples
25-
- name: Format
26-
run: cargo fmt --all -- --check
27-
- name: Clippy
28-
run: cargo clippy --lib --features derive,serialize,ratatui,crossterm --no-default-features -- -Dwarnings
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
toolchain: stable
17+
components: rustfmt, clippy
18+
- name: Tests
19+
run: cargo test --no-fail-fast --features derive,serialize,ratatui,crossterm --no-default-features
20+
env:
21+
RUST_BACKTRACE: full
22+
- name: Examples
23+
run: cargo build --all-targets --examples
24+
- name: Format
25+
run: cargo fmt --all -- --check
26+
- name: Clippy
27+
run: cargo clippy --lib --features derive,serialize,ratatui,crossterm --no-default-features -- -Dwarnings

‎.github/workflows/ratatui_termion.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
toolchain: stable
17-
override: true
18-
components: rustfmt, clippy
19-
- uses: actions-rs/cargo@v1
20-
with:
21-
command: test
22-
args: --no-fail-fast --no-default-features --features derive,serialize,ratatui,termion
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
toolchain: stable
17+
components: rustfmt, clippy
18+
- name: Tests
19+
run: cargo test --no-fail-fast --no-default-features --features derive,serialize,ratatui,termion
20+
env:
21+
RUST_BACKTRACE: full
2322
- name: Examples
2423
run: cargo build --all-targets --no-default-features --features derive,serialize,ratatui,termion --examples
2524
- name: Format

‎.github/workflows/tui_crossterm.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
toolchain: stable
17-
override: true
18-
components: rustfmt, clippy
19-
- uses: actions-rs/cargo@v1
20-
with:
21-
command: test
22-
args: --no-fail-fast --features derive,serialize,tui,crossterm --no-default-features
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
toolchain: stable
17+
components: rustfmt, clippy
18+
- name: Tests
19+
run: cargo test --no-fail-fast --features derive,serialize,tui,crossterm --no-default-features
20+
env:
21+
RUST_BACKTRACE: full
2322
- name: Examples
2423
run: cargo build --all-targets --examples
2524
- name: Format

‎.github/workflows/tui_termion.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
15-
with:
16-
toolchain: stable
17-
override: true
18-
components: rustfmt, clippy
19-
- uses: actions-rs/cargo@v1
20-
with:
21-
command: test
22-
args: --no-fail-fast --no-default-features --features derive,serialize,tui,termion
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
toolchain: stable
17+
components: rustfmt, clippy
18+
- name: Tests
19+
run: cargo test --no-fail-fast --no-default-features --features derive,serialize,tui,termion
20+
env:
21+
RUST_BACKTRACE: full
2322
- name: Examples
2423
run: cargo build --all-targets --no-default-features --features derive,serialize,tui,termion --examples
2524
- name: Format

0 commit comments

Comments
 (0)
Please sign in to comment.