-
Notifications
You must be signed in to change notification settings - Fork 352
55 lines (52 loc) · 2.32 KB
/
buildpr.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
54
55
name: Build Pull Request or Commit
on:
workflow_dispatch:
pull_request:
branches:
- dev
paths:
- 'src/**'
permissions: read-all
jobs:
build_dev_branch:
runs-on: macos-latest
steps:
- name: Checkout PnP.Framework
uses: actions/checkout@v4
with:
repository: pnp/pnpframework
path: pnpframework
ref: 'dev'
- name: Checkout PnP.Core
uses: actions/checkout@v4
with:
repository: pnp/pnpcore
path: pnpcore
ref: 'dev'
- name: Checkout PnP.PowerShell
uses: actions/checkout@v4
with:
path: powershell
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
- name: Install PnP.Core dependencies
run: dotnet restore
working-directory: pnpcore/src/sdk
- name: Build PnP.Core
run: dotnet build --configuration Debug --no-restore -p:WarningLevel=0
working-directory: pnpcore/src/sdk/PnP.Core
- name: Install PnP.Framework dependencies
run: dotnet restore -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\netstandard2.0\PnP.Core.dll" -p:PnPCoreSdkPathNet8="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net8.0\PnP.Core.dll" -p:PnPCoreSdkPathNet9="..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net9.0\PnP.Core.dll"
working-directory: pnpframework/src/lib
- name: Build PnP.Framework
run: dotnet build --configuration Debug --no-restore -p:WarningLevel=0 -p:PnPCoreSdkPath="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\netstandard2.0\PnP.Core.dll" -p:PnPCoreSdkPathNet8="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net8.0\PnP.Core.dll" -p:PnPCoreSdkPathNet9="..\..\..\..\pnpcore\src\sdk\PnP.Core\bin\Debug\net9.0\PnP.Core.dll"
working-directory: pnpframework/src/lib/PnP.Framework
- name: Install PnP.PowerShell dependencies
run: dotnet restore -p:PnPFrameworkPath="..\..\..\pnpframework\src\lib\" -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\"
working-directory: powershell/src
- name: Build PnP.PowerShell
run: dotnet build --configuration Debug --no-restore -p:PnPFrameworkPath="/Users/runner/work/powershell/powershell/pnpframework/src/lib/" -p:PnPCoreSdkPath="/Users/runner/work/powershell/powershell/pnpcore/src/sdk/"
working-directory: powershell/src