-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.56 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build
on: [ push, pull_request ]
defaults:
run:
shell: bash
jobs:
build:
name: Build ${{ matrix.rid }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
rid: win-x64
- os: windows-latest
rid: win-x86
- os: macos-latest
rid: osx-x64
- os: ubuntu-latest
rid: linux-x64
steps:
- uses: actions/checkout@v4
- name: Build
run: |
dotnet build -c Release -r ${{ matrix.rid }} -p:InstallYetAnotherHttpHandler=false
- uses: actions/upload-artifact@v4
with:
name: NuGetDependencies-${{ matrix.rid }}
path: Dependencies/NuGetDependencies/${{ matrix.rid }}
install-yetanotherhttphandler:
name: Install YetAnotherHttpHandler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: dotnet build /t:InstallYetAnotherHttpHandler
- uses: actions/upload-artifact@v4
with:
name: YetAnotherHttpHandler
path: Dependencies/YetAnotherHttpHandler
dispatch:
runs-on: ubuntu-latest
needs: [ build, install-yetanotherhttphandler ]
if: github.repository == 'VisualPinball/VisualPinball.Engine.Mpf' && github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GH_PAT }}
event-type: build-complete
client-payload: '{"artifacts_run_id": "${{ github.run_id }}"}'