fix(installer): guard SourceDir/OutputDir with #ifndef so CI can over… #7
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| DOTNET_VERSION: '8.0.x' | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET ${{ env.DOTNET_VERSION }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| # SQLTriage.csproj hardcodes <RuntimeIdentifier>win-x64</RuntimeIdentifier>, | |
| # so restore must download the win-x64 runtime pack or build fails with | |
| # NETSDK1112. Pass -r win-x64 explicitly. | |
| - name: Restore | |
| run: dotnet restore SQLTriage.sln -r win-x64 | |
| - name: Build | |
| run: dotnet build SQLTriage.sln -c Release --no-restore | |
| - name: Test | |
| run: dotnet test SQLTriage.sln -c Release --no-build --verbosity normal |