-
Notifications
You must be signed in to change notification settings - Fork 38
54 lines (45 loc) · 1.52 KB
/
sqlnotebook.yml
File metadata and controls
54 lines (45 loc) · 1.52 KB
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
name: SQL Notebook
on: push
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
platform: [x64, arm64]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Build Phase 1
shell: pwsh
run: |
Write-Output "Finding msbuild."
$msbuildPath = & vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
Write-Output "Found msbuild at: $msbuildPath"
Write-Output "Building ${{ matrix.platform }} - Phase 1 (build and prepare files)."
ps1\Start-Release.ps1 -MsbuildPath $msbuildPath -Platform ${{ matrix.platform }}
- name: Upload Release Files
uses: actions/upload-artifact@v4
with:
name: SqlNotebook-${{ matrix.platform }}-release-files
path: src/SqlNotebook/bin/publish/*
test:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Build
shell: pwsh
run: |
Write-Output "Finding msbuild."
$msbuildPath = & vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
Write-Output "Found msbuild at: $msbuildPath"
ps1\Update-Deps.ps1
ps1\Start-Tests.ps1 -MsbuildPath $msbuildPath -Platform "x64"