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