File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 matrix :
1010 platform : [x64, x86, arm64]
1111 steps :
12-
1312 - name : Checkout Repository
1413 uses : actions/checkout@v4
1514
2625 Write-Output "Found msbuild at: $msbuildPath"
2726
2827 Write-Output "Building ${{ matrix.platform }}."
29- ps1\Clear-TempFiles.ps1
3028 ps1\New-Release.ps1 -MsbuildPath $msbuildPath -Platform ${{ matrix.platform }}
3129 Move-Item src/SqlNotebook/bin/SqlNotebook.msi SqlNotebook-${{ matrix.platform }}.msi
3230 Move-Item src/SqlNotebook/bin/SqlNotebook.zip SqlNotebook-${{ matrix.platform }}.zip
33- ps1\Start-Tests.ps1 -MsbuildPath $msbuildPath -Platform ${{ matrix.platform }}
3431
3532 - name : Upload MSI
3633 uses : actions/upload-artifact@v4
4340 with :
4441 name : SqlNotebook-${{ matrix.platform }}.zip
4542 path : SqlNotebook-${{ matrix.platform }}.zip
43+
44+ test :
45+ runs-on : warp-windows-latest-x64-4x
46+ steps :
47+ - name : Checkout Repository
48+ uses : actions/checkout@v4
49+
50+ - name : Setup .NET 7
51+ uses : actions/setup-dotnet@v4
52+ with :
53+ dotnet-version : ' 7.0.x'
54+
55+ - name : Build
56+ shell : pwsh
57+ run : |
58+ Write-Output "Finding msbuild."
59+ $msbuildPath = & vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
60+ Write-Output "Found msbuild at: $msbuildPath"
61+ ps1\Update-Deps.ps1
62+ ps1\Start-Tests.ps1 -MsbuildPath $msbuildPath -Platform "x64"
Original file line number Diff line number Diff line change 66 [string ]$Platform
77)
88
9+ Write-Output " Restoring NuGet dependencies."
10+ & " $MsbuildPath " / verbosity:quiet / t:restore / p:Configuration= Debug / p:Platform= $Platform / p:RuntimeIdentifier= win- $Platform / p:PublishReadyToRun= true src\SqlNotebook\SqlNotebook.csproj
11+ if ($LastExitCode -ne 0 ) {
12+ throw " Failed to restore NuGet dependencies."
13+ }
14+
915Write-Output " Building sqlite3."
1016& " $MsbuildPath " / verbosity:quiet / t:build / p:Configuration= Debug / p:Platform= $Platform src\SqlNotebookDb\SqlNotebookDb.vcxproj
1117if ($LastExitCode -ne 0 ) {
You can’t perform that action at this time.
0 commit comments