Skip to content

Commit 20fdd0b

Browse files
committed
CI: run tests as a separate job on x64 only
1 parent 470cde0 commit 20fdd0b

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/sqlnotebook.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
matrix:
1010
platform: [x64, x86, arm64]
1111
steps:
12-
1312
- name: Checkout Repository
1413
uses: actions/checkout@v4
1514

@@ -26,11 +25,9 @@ jobs:
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
@@ -43,3 +40,23 @@ jobs:
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"

ps1/Start-Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ param (
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+
915
Write-Output "Building sqlite3."
1016
& "$MsbuildPath" /verbosity:quiet /t:build /p:Configuration=Debug /p:Platform=$Platform src\SqlNotebookDb\SqlNotebookDb.vcxproj
1117
if ($LastExitCode -ne 0) {

0 commit comments

Comments
 (0)