-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 906 Bytes
/
PR.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
name: PullRequest
on:
# push:
# branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Run bootstrap.ps1 script from PR branch;
if: matrix.os == 'windows-latest'
shell: powershell
run: |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
Write-Host "skip bootstrap's repo 'clone' stage (already have correct script), start with 'setup'"
./bootstrap.ps1 setup -runAsAdmin
- name: Run bootstrap.sh script from PR branch;
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
shell: bash
run: |
echo "skip bootstrap's repo 'clone' stage (already have correct script), start with 'setup'"
./bootstrap.sh setup