-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (28 loc) · 1.12 KB
/
build-on-push.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
name: build-on-push
on: [push]
jobs:
build_kkpviewer:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: KKPViewer
submodules: recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Build Debug|x86
run: msbuild .\KKPViewer\KKPViewer.sln /p:Configuration=Debug /p:Platform=x86
- name: Build Release|x86
run: msbuild .\KKPViewer\KKPViewer.sln /p:Configuration=Release /p:Platform=x86
- name: Build Debug|x64
run: msbuild .\KKPViewer\KKPViewer.sln /p:Configuration=Debug /p:Platform=x64
- name: Build Release|x64
run: msbuild .\KKPViewer\KKPViewer.sln /p:Configuration=Release /p:Platform=x64
- name: Build failure check
if: ${{ failure() }}
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.WEBHOOK_URL }}
headers: '{"X-Github-Raw-Secret": "${{ secrets.WEBHOOK_SECRET }}", "X-Github-Event": "build-failure"}'
body: '{ "github":${{ toJSON(github) }},"run_url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }'