Update website and Chocolatey to version 2.0.0 #56
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, 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" |