Skip to content

Commit

Permalink
Make support of static features separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
masa-koz committed Dec 17, 2024
1 parent da0c404 commit 64a4561
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-xlarge]
features: ["", "--features static"]
runs-on: ${{ matrix.os }}
name: Cargo
steps:
Expand All @@ -41,12 +42,8 @@ jobs:
if: runner.os == 'Linux'
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Cargo build
run: cargo build --all
run: cargo build --all ${{ matrix.features }}
- name: Cargo test
run: cargo test --all
- name: Cargo build with static feature
run: cargo build --all --features static
- name: Cargo test with static feature
run: cargo test --all --features static
run: cargo test --all ${{ matrix.features }}
- name: Cargo Publish (dry run)
run: cargo publish --dry-run --allow-dirty

0 comments on commit 64a4561

Please sign in to comment.