Add matrix.os.platform

This commit is contained in:
jvyden 2021-10-19 23:32:53 -04:00
commit 6b91a12f6b
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -6,7 +6,7 @@ name: Continuous Integration
jobs: jobs:
test: test:
name: Build for ${{ matrix.os }} name: Build for ${{ matrix.os.name }}
if: "!contains(github.event.head_commit.message, '[skip ci]')" if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
@ -14,9 +14,9 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- Windows - { name: Windows, platform: win-x64 }
- Linux - { name: Linux, platform: linux-x64 }
- MacOS - { name: MacOS, platform: osx-x64 }
steps: steps:
- name: Cancel previous runs of this workflow - name: Cancel previous runs of this workflow
uses: styfle/cancel-workflow-action@0.6.0 uses: styfle/cancel-workflow-action@0.6.0
@ -32,9 +32,9 @@ jobs:
dotnet-version: "5.0.x" dotnet-version: "5.0.x"
- name: Compile - name: Compile
run: dotnet publish -c ${{ matrix.os }} run: dotnet publish -c ${{ matrix.os.name }} -r ${{ matrix.os.platform }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: UnionPatcher-${{ matrix.os }} name: UnionPatcher-${{ matrix.os.name }}
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os }}/bin path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os.name }}/bin