Skip to content

Commit

Permalink
feat(ci): builds and checks with and without all features
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Jun 17, 2022
1 parent deed850 commit ed2a8df
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build-crates-individually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,20 @@ jobs:
profile: minimal
override: true

- name: Build ${{ matrix.crate.name }} crate
- name: Build ${{ matrix.crate.name }} crate normally
uses: actions-rs/[email protected]
with:
command: build
args: --package ${{ matrix.crate.name }}

- name: Build ${{ matrix.crate.name }} crate with all features
uses: actions-rs/[email protected]
with:
command: build
args: --package ${{ matrix.crate.name }} --all-features

- name: Build ${{ matrix.crate.name }} crate with no default features
uses: actions-rs/[email protected]
with:
command: build
args: --package ${{ matrix.crate.name }} --no-default-features
9 changes: 8 additions & 1 deletion .github/workflows/continous-integration-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,18 @@ jobs:
with:
persist-credentials: false

- uses: EmbarkStudios/cargo-deny-action@v1
- name: Check ${{ matrix.checks }} with all features
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
args: --all-features --workspace

- name: Check ${{ matrix.checks }} with no default features
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
args: --no-default-features --workspace

# this check runs with optional features off
# so we expect some warnings about "skip tree root was not found"
- uses: EmbarkStudios/cargo-deny-action@v1
Expand Down

0 comments on commit ed2a8df

Please sign in to comment.