File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1010
1111env :
1212 BUILD_TYPE : Release
13- # For macOS qt keg-only package
14- CMAKE_PREFIX_PATH : ' /opt/homebrew/opt/qt@5'
1513
1614jobs :
1715 build :
1816 strategy :
1917 matrix :
2018 os : ['macos-latest', 'ubuntu-24.04', 'ubuntu-22.04']
19+ qt : ['qt5', 'qt6']
2120 runs-on : ${{ matrix.os }}
2221
2322 steps :
2423 - uses : actions/checkout@v2
2524
25+ - name : Set variables Qt5
26+ run : |
27+ echo "CMAKE_PREFIX_PATH='/opt/homebrew/opt/qt@5'" >> $GITHUB_ENV
28+ echo "QTPKG_MAC=qt@5" >> $GITHUB_ENV
29+ echo "QTPKG_UBUNTU=qtbase5-dev" >> $GITHUB_ENV
30+ if : matrix.qt == 'qt5'
31+
32+ - name : Set variables Qt6
33+ run : |
34+ echo "CMAKE_PREFIX_PATH='/opt/homebrew/opt/qt@6'" >> $GITHUB_ENV
35+ echo "QTPKG_MAC=qt@6" >> $GITHUB_ENV
36+ echo "QTPKG_UBUNTU=qt6-base-dev" >> $GITHUB_ENV
37+ if : matrix.qt == 'qt6'
38+
2639 - name : Install dependencies (macOS)
27- run : brew install fftw liquid-dsp qt@5
40+ run : brew install fftw liquid-dsp ${{ env.QTPKG_MAC }}
2841 if : matrix.os == 'macos-latest'
2942
3043 - name : Install dependencies (Ubuntu)
3144 run : |
3245 sudo apt update
33- sudo apt install libfftw3-dev libliquid-dev qtbase5-dev
46+ sudo apt install libfftw3-dev libliquid-dev ${{ env.QTPKG_UBUNTU }}
3447 if : startsWith(matrix.os, 'ubuntu-')
3548
3649 - name : Create Build Environment
You can’t perform that action at this time.
0 commit comments