fix: This fixes the crash in ObjectProxy Model when the QML Context #63
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: Run Qt Tests (Linux) | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| qt-version: [5.15.2, 6.8.3] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: '${{ matrix.qt-version }}' | |
| - name: Set up build tools | |
| run: sudo apt-get update && sudo apt-get install -y build-essential cmake | |
| - name: Build project | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. -DQTMODELSTOOLKIT_BUILD_DEMO_APP=ON -DQTMODELSTOOLKIT_BUILD_TESTS=ON | |
| cmake --build . -j | |
| - name: Run tests | |
| env: | |
| QT_QPA_PLATFORM: "offscreen" | |
| run: | | |
| cd build | |
| ctest --output-on-failure --test-dir tests |