From 260af8be7434890704aaac3eb51304cd806770f0 Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 19 Oct 2021 23:20:09 -0400 Subject: [PATCH] Use matrix for building across all platforms --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dcf3b00..d52a653 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,10 +6,16 @@ name: Continuous Integration jobs: test: - name: Build for Linux + name: Build for ${{ matrix.os }} if: "!contains(github.event.head_commit.message, '[skip ci]')" runs-on: ubuntu-latest timeout-minutes: 10 + strategy: + matrix: + os: + - Linux + - Windows + - MacOS steps: - name: Cancel previous runs of this workflow uses: styfle/cancel-workflow-action@0.6.0 @@ -25,9 +31,9 @@ jobs: dotnet-version: "5.0.x" - name: Compile - run: dotnet publish -c Linux + run: dotnet publish -c ${{ matrix.os }} - uses: actions/upload-artifact@v2 with: - name: UnionPatcher-Linux - path: ${{ github.workspace }}/UnionPatcher.Gui.Linux/bin \ No newline at end of file + name: UnionPatcher-${{ matrix.os }} + path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os }}/bin \ No newline at end of file