Read me improvements (#2) #20
This file contains 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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1 | |
# Setup vstest | |
- name: Setup VSTest | |
uses: darenm/Setup-VSTest@v1 | |
# Restore nuget packages | |
- name: Restore packages | |
run: nuget restore xlDuckDb.sln | |
# Build | |
- name: Build solution | |
run: msbuild xlDuckDb.sln -t:rebuild -property:Configuration=Release -property:ExcelDnaCreate32BitAddIn=false -property:ExcelDna64BitAddInSuffix= -property:RunExcelDnaPack=false -property:ExcelDna32BitAddInSuffix=32 | |
# Run tests | |
- name: Unit test | |
run: vstest.console.exe /Platform:x64 .\UnitTests\bin\x64\Release\UnitTests.dll | |
# Upload binary | |
- name: "Upload binary" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: xlduckdb-${{ github.sha }} | |
path: .\xlDuckDb\bin\x64\Release\*.* | |
retention-days: 1 | |