bump to 6.8.2 #61
Workflow file for this run
This file contains 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: msvc-static | |
on: [push, workflow_dispatch] | |
jobs: | |
matrix_build: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [win64, win32] | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
- run: python --version | |
- name: Setup the compiler target win64 | |
if: startsWith(matrix.arch, 'win64') | |
uses: TheMrMilchmann/setup-msvc-dev@v3 | |
with: | |
arch: 'x64' | |
- name: Setup the compiler target win32 | |
if: startsWith(matrix.arch, 'win32') | |
uses: TheMrMilchmann/setup-msvc-dev@v3 | |
with: | |
arch: 'x86' | |
- name: Install ninja-build tool | |
uses: seanmiddleditch/gha-setup-ninja@v6 | |
- name: Cache huge Qt repo | |
id: cache-qt-repo | |
uses: actions/cache@v4 | |
with: | |
path: ${{ runner.workspace }}/qt-source | |
key: qt-source-6.8.2 | |
- name: Clone Qt repo and its submodules | |
working-directory: ${{ runner.workspace }} | |
if: steps.cache-qt-repo.outputs.cache-hit != 'true' | |
run: | | |
# Clone Qt6 repo | |
git clone git://code.qt.io/qt/qt5.git -b v6.8.2 --depth 1 qt-source | |
cd qt-source | |
git apply ${{ github.workspace }}/0001-shadow-clone-for-submodules.patch | |
perl init-repository.pl --shallow | |
- name: create build directory | |
working-directory: ${{ runner.workspace }} | |
run: mkdir qt-build | |
- name: configure Qt for static build | |
working-directory: ${{ runner.workspace }}/qt-build | |
run: > | |
..\qt-source\configure.bat -debug-and-release -static -static-runtime -no-pch -optimize-size -platform win32-msvc | |
-prefix "..\qt-release" -confirm-license | |
-no-feature-accessibility | |
-no-feature-valgrind | |
-no-feature-appstore-compliant | |
-no-feature-assistant | |
-no-feature-example-hwr | |
-no-feature-windeployqt | |
-no-feature-macdeployqt | |
-no-feature-androiddeployqt | |
-no-feature-qdbus | |
-no-feature-qtdiag | |
-no-feature-qtplugininfo | |
-skip qtquick3dphysics,qtgraphs,qtquick3d,qtopcua,qtgrpc,qt3d,qtcanvas3d,qtdatavis3d,qtgamepad,qtcharts,qtconnectivity,qtmqtt,qtcoap,qtqa,qtdbus,qtremoteobjects,qtpim,qtspeech,qtfeedback,qtactiveqt,qtserialbus,qtserialport,tests | |
-- -DFEATURE_cxx20=ON | |
- name: build qt | |
working-directory: ${{ runner.workspace }}/qt-build | |
run: cmake --build . --parallel 4 | |
- name: install qt to temp dir | |
working-directory: ${{ runner.workspace }}/qt-build | |
run: | | |
ninja install:Debug | |
ninja install:Release | |
# Create archive of the pre-built Qt binaries | |
- name: Package binaries | |
working-directory: ${{ runner.workspace }}/qt-release | |
run: 7z a ${{ github.workspace }}\\qt6_682_${{ matrix.arch }}-msvc2022_static.zip . | |
- name: Release | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: qt6_682_${{ matrix.arch }}-$msvc2022_static.zip | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
overwrite: true | |
name: qt6_682_${{ matrix.arch }}-msvc2022_static | |
path: ${{ runner.workspace }}/qt-release | |