Sourcegen refactoring for better compile-time XML parsing & hardening… #58
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: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET 8.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Install D-Bus dependencies (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev | |
| - name: Install D-Bus dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install dbus | |
| - name: Restore dependencies | |
| run: dotnet restore Avalonia.DBus.slnx | |
| - name: Build | |
| run: dotnet build Avalonia.DBus.slnx --configuration Release --no-restore | |
| - name: AOT Compatibility Gate | |
| run: ./tools/check-aot-compat.sh | |
| - name: Run Source Generator Tests | |
| run: dotnet test tests/Avalonia.DBus.SourceGen.Tests/ --no-build --configuration Release | |
| - name: Run Tests | |
| run: dotnet test tests/Avalonia.DBus.Tests/ --no-build --configuration Release --logger "console;verbosity=detailed" |