Skip to content

Commit

Permalink
Build and test with default and all features in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sirhcel authored and eldruin committed May 19, 2023
1 parent 7d403c2 commit c3ba8f1
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,38 @@ jobs:
- name: Build | rust-cache
uses: Swatinem/rust-cache@v1

- name: Build | build library
- name: Build | build library (default features)
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ inputs.target }}

- name: Build | build examples
- name: Build | build library (all features)
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --target=${{ inputs.target }}

- name: Build | build examples (default features)
if: ${{ inputs.disable_extra_builds == false }}
run: cargo build --examples --target=${{ inputs.target }}

- name: Build | build tests
- name: Build | build examples (all features)
if: ${{ inputs.disable_extra_builds == false }}
run: cargo build --examples --all-features --target=${{ inputs.target }}

- name: Build | build tests (default features)
if: ${{ inputs.disable_extra_builds == false }}
run: cargo build --tests --target=${{ inputs.target }}

- name: Build | run tests
- name: Build | run tests (default features)
if: ${{ inputs.disable_tests == false }}
run: cargo test --no-fail-fast --target=${{ inputs.target }}

- name: Build | build tests (all features)
if: ${{ inputs.disable_extra_builds == false }}
run: cargo build --tests --all-features --target=${{ inputs.target }}

- name: Build | run tests (all features)
if: ${{ inputs.disable_tests == false }}
run: cargo test --no-fail-fast --all-features --target=${{ inputs.target }}

0 comments on commit c3ba8f1

Please sign in to comment.