diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-08-19 22:16:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 22:16:44 -0400 |
commit | ed07fbe1ccb4b4f27253b1a642d8a6a663bcbf6b (patch) | |
tree | c73687b81ab5c6549bd1063c57a60b4f84a1f685 /.github | |
parent | 2c8aea9eef696ecec7d999d9da62ed8c5cb2a09c (diff) |
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.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 10 | ||||
-rw-r--r-- | .github/workflows/deployment.yml | 2 | ||||
-rw-r--r-- | .github/workflows/nightly.yml | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69041fe6..9c12e669 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index e29d1a9a..90ab9bb3 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -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 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 817750ad..21beb3b8 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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 |