Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JonesBeach authored Nov 12, 2024
1 parent b9a5065 commit 6dd8f5d
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,24 @@ jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
# Each feature flag combination. GitHub will run these in parallel because magic.
features:
- ""
- "async_mode"
- "use_dependencies"
- "async_mode use_dependencies"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup protoc
uses: arduino/[email protected]
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Test async mode
run: cargo test --features async_mode --verbose
- name: Test with third-party libs
run: cargo test --features use_dependencies --verbose
- name: Run tests
run: |
if [ -z "${{ matrix.features }}" ]; then
cargo test --verbose
else
cargo test --verbose --features "${{ matrix.features }}"
fi

0 comments on commit 6dd8f5d

Please sign in to comment.