mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 13:05:17 +00:00
Add matrix.os.platform
This commit is contained in:
parent
a7212c4ac3
commit
6b91a12f6b
1 changed files with 7 additions and 7 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -6,7 +6,7 @@ name: Continuous Integration
|
|||
|
||||
jobs:
|
||||
test:
|
||||
name: Build for ${{ matrix.os }}
|
||||
name: Build for ${{ matrix.os.name }}
|
||||
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
@ -14,9 +14,9 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- Windows
|
||||
- Linux
|
||||
- MacOS
|
||||
- { name: Windows, platform: win-x64 }
|
||||
- { name: Linux, platform: linux-x64 }
|
||||
- { name: MacOS, platform: osx-x64 }
|
||||
steps:
|
||||
- name: Cancel previous runs of this workflow
|
||||
uses: styfle/cancel-workflow-action@0.6.0
|
||||
|
@ -32,9 +32,9 @@ jobs:
|
|||
dotnet-version: "5.0.x"
|
||||
|
||||
- name: Compile
|
||||
run: dotnet publish -c ${{ matrix.os }}
|
||||
run: dotnet publish -c ${{ matrix.os.name }} -r ${{ matrix.os.platform }}
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: UnionPatcher-${{ matrix.os }}
|
||||
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os }}/bin
|
||||
name: UnionPatcher-${{ matrix.os.name }}
|
||||
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os.name }}/bin
|
Loading…
Add table
Reference in a new issue