mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-03 14:48:53 +00:00
Use matrix.os.configurationName (release on mac, os name on everything else)
This commit is contained in:
parent
834e432dab
commit
ff1b5c6917
1 changed files with 8 additions and 8 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -6,7 +6,7 @@ name: Continuous Integration
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Build for ${{ matrix.os.name }}
|
name: Build for ${{ matrix.os.prettyName }}
|
||||||
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:
|
||||||
- { name: Windows, platform: win-x64 }
|
- { prettyName: Windows, configurationName: Windows, platform: win-x64 }
|
||||||
- { name: Linux, platform: linux-x64 }
|
- { prettyName: Linux, configurationName: Linux, platform: linux-x64 }
|
||||||
- { name: MacOS, platform: osx-x64 }
|
- { prettyName: MacOS, configurationName: Release, 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
|
||||||
|
@ -31,10 +31,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
dotnet-version: "5.0.x"
|
dotnet-version: "5.0.x"
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile for ${{ matrix.os.prettyName }}
|
||||||
run: dotnet publish -c ${{ matrix.os.name }} -r ${{ matrix.os.platform }} --self-contained
|
run: dotnet publish -c ${{ matrix.os.configurationName }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: UnionPatcher-${{ matrix.os.name }}
|
name: UnionPatcher-${{ matrix.os.prettyName }}
|
||||||
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os.name }}/bin
|
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os.prettyName }}/bin
|
Loading…
Add table
Add a link
Reference in a new issue