Enhance usage documentation and tests, expanding coverage of installa… #38
Workflow file for this run
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-windows | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build-test: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore | |
| run: dotnet restore Mammoth.LiteMapper.sln | |
| - name: Build | |
| run: dotnet build Mammoth.LiteMapper.sln --no-restore | |
| - name: Test | |
| shell: pwsh | |
| run: | | |
| $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" | |
| $installPath = & $vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | |
| if (-not $installPath) { | |
| throw "Visual Studio C++ toolchain was not found." | |
| } | |
| $vsDevCmd = Join-Path $installPath "Common7\Tools\VsDevCmd.bat" | |
| cmd /s /c "call `"$vsDevCmd`" -arch=x64 -host_arch=x64 && dotnet test Mammoth.LiteMapper.sln --no-build" | |
| env: | |
| LITEMAPPER_REQUIRE_NATIVE_AOT: '1' | |
| - name: Validate solution paths | |
| shell: pwsh | |
| run: | | |
| dotnet sln Mammoth.LiteMapper.sln list | |
| dotnet sln Mammoth.LiteMapper.slnx list |