Skip to content

CI: Try GitHub standard runners #42

CI: Try GitHub standard runners

CI: Try GitHub standard runners #42

Workflow file for this run

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"