-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 927 Bytes
/
Copy pathpull-request.yml
File metadata and controls
33 lines (29 loc) · 927 Bytes
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
name: Build for Pull Request
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
build:
name: Build
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: ./.github/build/linux/init.sh
- name: Build for Linux
if: matrix.os == 'ubuntu-latest'
run: ./.github/build/linux/release.sh
- name: Setup MSBuild path
if: matrix.os == 'windows-latest'
uses: microsoft/setup-msbuild@v2
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: .\.github\build\windows\init.bat
- name: Build for Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: .\.github\build\windows\release.bat