From 7eccc0a0b87415b73c89a3fb71661292abf1931f Mon Sep 17 00:00:00 2001 From: amitz Date: Sun, 17 Mar 2024 23:49:13 +0200 Subject: [PATCH] matrix strategy --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12249880d4..6dae1116e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,9 @@ on: jobs: ci: runs-on: ubuntu-latest + strategy: + matrix: + binary: [lavad, lavap, lavavisor] steps: - name: Install Go uses: actions/setup-go@v5 @@ -27,12 +30,12 @@ jobs: with: version: latest args: build --single-target --snapshot --clean - workdir: cmd/lavad + workdir: cmd/${{ matrix.binary }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Artifacts uses: actions/upload-artifact@v4 with: - name: lavad - path: cmd/lavad/dist/* + name: ${{ matrix.binary }} + path: cmd/${{ matrix.binary }}/dist/*