mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-04-08 17:05:59 +02:00
Merge pull request #721 from ClementTsang/remove_cache_from_fmt
Removes the caching step from the cargo fmt check as it does nothing. Also adds an extra test for if the battery feature is disabled.
This commit is contained in:
commit
2629709c5d
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -54,9 +54,6 @@ jobs:
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
||||
- run: cargo fmt --all -- --check
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
|
||||
@ -87,7 +84,7 @@ jobs:
|
||||
features: [
|
||||
"--all-features",
|
||||
# "--features battery",
|
||||
# "--features gpu", # Think it's fine to skip this specific test.
|
||||
# "--features gpu",
|
||||
"--no-default-features",
|
||||
]
|
||||
steps:
|
||||
@ -130,7 +127,7 @@ jobs:
|
||||
|
||||
- name: Run clippy
|
||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
||||
run: cargo clippy ${{ matrix.features }} --workspace -- -D warnings
|
||||
run: cargo clippy ${{ matrix.features }} --all-targets --workspace -- -D warnings
|
||||
|
||||
# Run cargo check on all other platforms
|
||||
other_check:
|
||||
@ -265,5 +262,5 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --features "battery" --locked
|
||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --locked
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
4
.github/workflows/deployment.yml
vendored
4
.github/workflows/deployment.yml
vendored
@ -149,7 +149,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --verbose --locked --target=${{ matrix.triple.target }} --features "battery"
|
||||
args: --release --verbose --locked --target=${{ matrix.triple.target }} --features deploy
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
||||
- name: Build autocompletion and manpage
|
||||
@ -317,7 +317,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --locked --verbose --features "battery"
|
||||
args: --release --locked --verbose --features deploy
|
||||
|
||||
- name: Build autocompletion and manpage
|
||||
shell: bash
|
||||
|
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@ -145,7 +145,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --locked --verbose --target=${{ matrix.triple.target }} --features "battery"
|
||||
args: --release --locked --verbose --target=${{ matrix.triple.target }} --features deploy
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
||||
- name: Build autocompletion and manpage
|
||||
@ -311,7 +311,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --locked --verbose --features "battery"
|
||||
args: --release --locked --verbose --features deploy
|
||||
|
||||
- name: Build autocompletion and manpage
|
||||
shell: bash
|
||||
|
@ -32,6 +32,7 @@ strip = "symbols"
|
||||
|
||||
[features]
|
||||
default = ["fern", "log", "battery", "gpu"]
|
||||
deploy = ["battery", "gpu"]
|
||||
gpu = ["nvidia"]
|
||||
nvidia = ["nvml-wrapper"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user