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: jobs:
build: build:
strategy:
matrix:
feature:
- tcp
- unix
runs-on: nix runs-on: nix
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run clippy (tcp feature) - name: Run clippy
run: nix develop . -c cargo clippy --no-default-features --features tcp run: nix develop . -c cargo clippy --no-default-features --features ${{ matrix.feature }}
- name: Run clippy (unix feature) - name: Build & test
run: nix develop . -c cargo clippy --no-default-features --features unix run: nix build .#${{ matrix.feature }}
- name: Build & test (tcp feature)
run: nix build .#tcp
- name: Build & test (unix feature)
run: nix build .#unix