CI: Try GitHub standard runners #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SQL Notebook | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| platform: [x64, x86, arm64] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 7 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '7.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" | |
| Write-Output "Building ${{ matrix.platform }}." | |
| ps1\New-Release.ps1 -MsbuildPath $msbuildPath -Platform ${{ matrix.platform }} | |
| Move-Item src/SqlNotebook/bin/SqlNotebook.msi SqlNotebook-${{ matrix.platform }}.msi | |
| Move-Item src/SqlNotebook/bin/SqlNotebook.zip SqlNotebook-${{ matrix.platform }}.zip | |
| - name: Upload MSI | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SqlNotebook-${{ matrix.platform }}.msi | |
| path: SqlNotebook-${{ matrix.platform }}.msi | |
| - name: Upload ZIP | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SqlNotebook-${{ matrix.platform }}.zip | |
| path: SqlNotebook-${{ matrix.platform }}.zip | |
| test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 7 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '7.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" |