Fix WinUI3 headers missing in release builds #71
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] | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up MSVC | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Set up vcpkg | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgGitCommitId: b1b19307e2d2ec1eefbdb7ea069de7d4bcd31f01 | |
| - name: Install Windows App SDK (for WinUI3 C++/WinRT headers) | |
| run: nuget install Microsoft.WindowsAppSDK -Version 1.5.240607001 -OutputDirectory packages | |
| - name: Configure | |
| run: cmake --preset default | |
| - name: Build managed WPF assembly | |
| run: msbuild src/tap_wpf/LvtWpfTap.csproj /p:Configuration=Release /p:Platform=AnyCPU /restore /v:minimal | |
| - name: Build managed Avalonia tree walker | |
| run: dotnet build src/plugin_avalonia/LvtAvaloniaTreeWalker/LvtAvaloniaTreeWalker.csproj -c Release | |
| - name: Build | |
| run: cmake --build build | |
| - name: Unit tests | |
| run: build\lvt_unit_tests.exe --gtest_output=xml:build\unit_test_results.xml | |
| - name: Chromium plugin tests | |
| run: build\lvt_chromium_tests.exe --gtest_output=xml:build\chromium_test_results.xml | |
| - name: Integration tests | |
| run: build\lvt_integration_tests.exe --gtest_output=xml:build\integration_test_results.xml | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: build\*_test_results.xml | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: lvt-binaries | |
| path: | | |
| build/lvt.exe | |
| build/lvt_tap_x64.dll | |
| build/lvt_wpf_tap_x64.dll | |
| build/LvtWpfTap.dll | |
| build/plugins/ |