From 7227379e6307923e47cb7306938cb2152f9f0141 Mon Sep 17 00:00:00 2001 From: Kodi Craft Date: Sat, 22 Jun 2024 13:02:54 +0200 Subject: [PATCH] Try using a matrix to run workflows in parallel --- .gitea/workflows/build.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 68a3d8f..05277e1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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 \ No newline at end of file + - name: Run clippy + run: nix develop . -c cargo clippy --no-default-features --features ${{ matrix.feature }} + - name: Build & test + run: nix build .#${{ matrix.feature }} \ No newline at end of file