Skip to content

Commit

Permalink
try Qt6 MinGW build
Browse files Browse the repository at this point in the history
  • Loading branch information
nschimme committed Jul 28, 2023
1 parent 36b62b1 commit c060578
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- os: macos-11.0
compiler: 'clang'
qt: qt5
- os: windows-2022
compiler: 'gcc'
qt: qt6
- os: windows-2022
compiler: msvc
qt: qt5
Expand Down Expand Up @@ -100,36 +103,41 @@ jobs:
#
# Install Packages (Windows)
#
- if: runner.os == 'Windows'
- if: runner.os == 'Windows' && matrix.compiler == 'msvc'
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
dir: 'C:\'
arch: win64_msvc2019_64
cache: true
tools: 'tools_ninja tools_openssl_x64'
- if: runner.os == 'Windows' && matrix.compiler == 'msvc'
run: |
echo "MMAPPER_CMAKE_EXTRA=-DCMAKE_PREFIX_PATH=C:\Qt\5.12.2\msvc2019_64 -DOPENSSL_ROOT_DIR=C:/Qt/Tools/OpenSSL/Win_x64" >> $GITHUB_ENV
- if: runner.os == 'Windows' && matrix.compiler == 'gcc'
uses: jurplel/install-qt-action@v3
with:
version: 6.5.2
dir: 'C:\'
arch: win64_mingw
cache: true
modules: 'qt5compat'
tools: 'tools_ninja tools_opensslv3_x64 tools_vcredist,qt.tools.vcredist_msvc2019_x64'
- if: runner.os == 'Windows' && matrix.compiler == 'gcc'
run: |
echo "MMAPPER_CMAKE_EXTRA=-DCMAKE_PREFIX_PATH=C:\Qt\6.5.2\win64_mingw -DOPENSSL_ROOT_DIR=C:/Qt/Tools/OpenSSL/Win_x64" >> $GITHUB_ENV
#
# Build
#
- if: runner.os == 'Windows' && matrix.compiler == 'msvc'
name: Build MMapper for Windows
shell: cmd
- name: Build MMapper
run: |
mkdir -p ${{ github.workspace }}/artifact
mkdir -p build
cd build
cmake --version
cmake -DCMAKE_BUILD_TYPE=Debug -G "Ninja" -DCPACK_PACKAGE_DIRECTORY=${{ github.workspace }}/artifact -DUSE_UNITY_BUILD=false -DCMAKE_PREFIX_PATH="C:\Qt\5.12.2\msvc2019_64" -DOPENSSL_ROOT_DIR=C:/Qt/Tools/OpenSSL/Win_x64 -S .. || exit -1
cmake --build . -j %NUMBER_OF_PROCESSORS%
- if: runner.os == 'Linux' || runner.os == 'macOS'
name: Build MMapper for Linux and Mac
run: |
mkdir -p build ${{ github.workspace }}/artifact
cd build
cmake --version
cmake -DCMAKE_BUILD_TYPE=Debug -G 'Ninja' -DUSE_UNITY_BUILD=false -DCPACK_PACKAGE_DIRECTORY=${{ github.workspace }}/artifact $MMAPPER_CMAKE_EXTRA -S .. || exit -1
cmake --build .
Expand Down

0 comments on commit c060578

Please sign in to comment.