mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 13:45:12 +02:00
ci: create deploy feature; test in CI
This encompasses features that we want on deployment.
This commit is contained in:
parent
6e2ea8eeda
commit
715af44efc
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -84,7 +84,7 @@ jobs:
|
|||||||
features: [
|
features: [
|
||||||
"--all-features",
|
"--all-features",
|
||||||
# "--features battery",
|
# "--features battery",
|
||||||
# "--features gpu", # Think it's fine to skip this specific test.
|
# "--features gpu",
|
||||||
"--no-default-features",
|
"--no-default-features",
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
@ -127,7 +127,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
|
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
|
# Run cargo check on all other platforms
|
||||||
other_check:
|
other_check:
|
||||||
@ -262,5 +262,5 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: check
|
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 }}
|
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
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
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 }}
|
use-cross: ${{ matrix.triple.cross }}
|
||||||
|
|
||||||
- name: Build autocompletion and manpage
|
- name: Build autocompletion and manpage
|
||||||
@ -317,7 +317,7 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --locked --verbose --features "battery"
|
args: --release --locked --verbose --features deploy
|
||||||
|
|
||||||
- name: Build autocompletion and manpage
|
- name: Build autocompletion and manpage
|
||||||
shell: bash
|
shell: bash
|
||||||
|
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@ -145,7 +145,7 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
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 }}
|
use-cross: ${{ matrix.triple.cross }}
|
||||||
|
|
||||||
- name: Build autocompletion and manpage
|
- name: Build autocompletion and manpage
|
||||||
@ -311,7 +311,7 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --locked --verbose --features "battery"
|
args: --release --locked --verbose --features deploy
|
||||||
|
|
||||||
- name: Build autocompletion and manpage
|
- name: Build autocompletion and manpage
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -32,6 +32,7 @@ strip = "symbols"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["fern", "log", "battery", "gpu"]
|
default = ["fern", "log", "battery", "gpu"]
|
||||||
|
deploy = ["battery", "gpu"]
|
||||||
gpu = ["nvidia"]
|
gpu = ["nvidia"]
|
||||||
nvidia = ["nvml-wrapper"]
|
nvidia = ["nvml-wrapper"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user