Update build.yml #6
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, pull_request, workflow_dispatch] | |
| jobs: | |
| build-package: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| name: Build and Package on ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v3 | |
| with: | |
| version: '6.6.2' | |
| host: ${{ startsWith(matrix.os, 'macos') && 'mac' || startsWith(matrix.os, 'windows') && 'windows' || 'linux' }} | |
| target: 'desktop' | |
| modules: 'qtcharts qtmultimedia' | |
| - name: Patch yunying | |
| run: | | |
| sed -i "s/^DEFINES += HAS_CDN/# DEFINES += HAS_CDN/" yunying.pro | |
| - name: Print event | |
| run: | | |
| echo "github.event: toJSON(github.event)" | |
| - name: Configure with qmake | |
| run: | | |
| qmake . | |
| - name: Build | |
| run: | | |
| make |