mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-01 13:48:41 +00:00
Use matrix for building across all platforms
This commit is contained in:
parent
f93d14fff5
commit
260af8be74
1 changed files with 10 additions and 4 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -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
|
||||
name: UnionPatcher-${{ matrix.os }}
|
||||
path: ${{ github.workspace }}/UnionPatcher.Gui.${{ matrix.os }}/bin
|
Loading…
Add table
Add a link
Reference in a new issue