Qt GUI CI #4
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: Qt GUI CI | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # Trigger on version tags (e.g., v1.0.0) | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build and Test with GUI | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v3 | |
| with: | |
| version: '6.6.2' | |
| host: 'linux' | |
| target: 'desktop' | |
| modules: 'qtcharts qtmultimedia' | |
| - name: Patch yunying | |
| run: | | |
| sed -i "s/^DEFINES += HAS_CDN/# DEFINES += HAS_CDN/" yunying.pro | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake xvfb | |
| echo "github.event: toJSON(github.event)" | |
| - name: Configure with qmake | |
| run: | | |
| qmake . | |
| - name: Build | |
| run: | | |
| make |