Skip to content

Commit

Permalink
update workflow to work and test multiple features
Browse files Browse the repository at this point in the history
  • Loading branch information
makemake-kbo committed Mar 31, 2024
1 parent 1bada0e commit 38c554c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
features:
- hashmap
- btreemap

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

- name: Build with ${{ matrix.features }} features
run: cargo build --verbose --features ${{ matrix.features }}

- name: Run tests with ${{ matrix.features }} features
run: cargo test --verbose --features ${{ matrix.features }}

0 comments on commit 38c554c

Please sign in to comment.