Try using a matrix to run workflows in parallel
This commit is contained in:
parent
fe5dabec45
commit
7227379e63
@ -3,15 +3,16 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
feature:
|
||||
- tcp
|
||||
- unix
|
||||
runs-on: nix
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Run clippy (tcp feature)
|
||||
run: nix develop . -c cargo clippy --no-default-features --features tcp
|
||||
- name: Run clippy (unix feature)
|
||||
run: nix develop . -c cargo clippy --no-default-features --features unix
|
||||
- name: Build & test (tcp feature)
|
||||
run: nix build .#tcp
|
||||
- name: Build & test (unix feature)
|
||||
run: nix build .#unix
|
||||
- name: Run clippy
|
||||
run: nix develop . -c cargo clippy --no-default-features --features ${{ matrix.feature }}
|
||||
- name: Build & test
|
||||
run: nix build .#${{ matrix.feature }}
|
Loading…
Reference in New Issue
Block a user