Try using a matrix to run workflows in parallel
All checks were successful
Build library & run tests / build (unix) (push) Successful in 32s
Build library & run tests / build (tcp) (push) Successful in 33s

This commit is contained in:
Kodi Craft 2024-06-22 13:02:54 +02:00
parent fe5dabec45
commit 7227379e63
Signed by: kodi
GPG Key ID: 69D9EED60B242822

View File

@ -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 }}