mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-05 22:40:46 +00:00
other: Make the battery dependency/features optional (#570)
Allows disabling of the battery dependency through a feature flag. This also aims to disable all related features.
This commit is contained in:
@@ -205,7 +205,15 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --no-default-features
|
||||
args: --all-targets --verbose --target=${{ matrix.triple.target }} --features "battery"
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
||||
- name: Check without battery feature on the main 3
|
||||
if: matrix.triple.toTest == 'true'
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-targets --verbose --target=${{ matrix.triple.target }}
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
||||
- name: Run tests
|
||||
|
||||
@@ -218,7 +218,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --verbose --target=${{ matrix.triple.target }} --no-default-features
|
||||
args: --release --verbose --target=${{ matrix.triple.target }} --features "battery"
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
||||
- name: Move autocomplete to working directory
|
||||
|
||||
@@ -212,7 +212,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --verbose --target=${{ matrix.triple.target }} --no-default-features
|
||||
args: --release --verbose --target=${{ matrix.triple.target }} --features "battery"
|
||||
use-cross: ${{ matrix.triple.cross }}
|
||||
|
||||
- name: Move autocomplete to working directory
|
||||
|
||||
Reference in New Issue
Block a user