From c0605788fbfbdb8f43e8f88cfbc97bdce141c17b Mon Sep 17 00:00:00 2001 From: Nils Schimmelmann Date: Fri, 28 Jul 2023 15:05:19 -0700 Subject: [PATCH] try Qt6 MinGW build --- .github/workflows/build-test.yml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 66a4e361..d5a1ac49 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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 @@ -100,7 +103,7 @@ 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 @@ -108,28 +111,33 @@ jobs: 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 .