mirror of
https://github.com/fralx/LimeReport.git
synced 2025-08-15 14:43:44 +03:00
Update cmake.yml
This commit is contained in:
parent
c1a96b32c9
commit
5181f977ec
192
.github/workflows/cmake.yml
vendored
192
.github/workflows/cmake.yml
vendored
@ -62,118 +62,118 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
MSVC:
|
# MSVC:
|
||||||
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }}
|
# name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }}
|
||||||
runs-on: windows-${{ matrix.win_version }}
|
# runs-on: windows-${{ matrix.win_version }}
|
||||||
needs: check-code-style
|
# needs: check-code-style
|
||||||
strategy:
|
# strategy:
|
||||||
fail-fast: false
|
# fail-fast: false
|
||||||
matrix:
|
# matrix:
|
||||||
win_version: [2022]
|
# win_version: [2022]
|
||||||
qt_version: [5.15.2, 6.4.0]
|
# qt_version: [5.15.2, 6.4.0]
|
||||||
static: [ON, OFF]
|
# static: [ON, OFF]
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
fetch-tags: true
|
# fetch-tags: true
|
||||||
|
|
||||||
# https://github.com/actions/checkout/issues/1781
|
# # https://github.com/actions/checkout/issues/1781
|
||||||
# workaround https://github.com/actions/checkout/issues/1471#issuecomment-1755560284
|
# # workaround https://github.com/actions/checkout/issues/1471#issuecomment-1755560284
|
||||||
- name: Fetch tags
|
# - name: Fetch tags
|
||||||
run: git fetch --prune --unshallow --tags
|
# run: git fetch --prune --unshallow --tags
|
||||||
|
|
||||||
- name: Install Qt
|
# - name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v3
|
# uses: jurplel/install-qt-action@v3
|
||||||
with:
|
# with:
|
||||||
version: ${{ matrix.qt_version }}
|
# version: ${{ matrix.qt_version }}
|
||||||
cache: 'true'
|
# cache: 'true'
|
||||||
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
|
# cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
|
||||||
dir: ${{ github.workspace }}/Qt
|
# dir: ${{ github.workspace }}/Qt
|
||||||
|
|
||||||
- name: Configure CMake for Qt5
|
# - name: Configure CMake for Qt5
|
||||||
if: "startsWith(matrix.qt_version, '5.')"
|
# if: "startsWith(matrix.qt_version, '5.')"
|
||||||
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
# run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
||||||
|
|
||||||
|
|
||||||
- name: Configure CMake for Qt6
|
# - name: Configure CMake for Qt6
|
||||||
if: "startsWith(matrix.qt_version, '6.')"
|
# if: "startsWith(matrix.qt_version, '6.')"
|
||||||
run: cmake -DUSE_QT6=ON -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
# run: cmake -DUSE_QT6=ON -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
||||||
|
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
MinGW-w64:
|
# MinGW-w64:
|
||||||
runs-on: windows-2022
|
# runs-on: windows-2022
|
||||||
name: msys2-${{ matrix.msystem }}-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }}
|
# name: msys2-${{ matrix.msystem }}-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }}
|
||||||
needs: check-code-style
|
# needs: check-code-style
|
||||||
strategy:
|
# strategy:
|
||||||
fail-fast: false
|
# fail-fast: false
|
||||||
matrix:
|
# matrix:
|
||||||
qt_version: [5, 6]
|
# qt_version: [5, 6]
|
||||||
msystem: [UCRT64, CLANG64]
|
# msystem: [UCRT64, CLANG64]
|
||||||
static: [ON, OFF]
|
# static: [ON, OFF]
|
||||||
defaults:
|
# defaults:
|
||||||
run:
|
# run:
|
||||||
shell: msys2 {0}
|
# shell: msys2 {0}
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
fetch-tags: true
|
# fetch-tags: true
|
||||||
|
|
||||||
- name: Install MinGW-w64 packages Qt5
|
# - name: Install MinGW-w64 packages Qt5
|
||||||
if: "startsWith(matrix.qt_version, '5')"
|
# if: "startsWith(matrix.qt_version, '5')"
|
||||||
uses: msys2/setup-msys2@v2
|
# uses: msys2/setup-msys2@v2
|
||||||
with:
|
# with:
|
||||||
msystem: ${{ matrix.msystem }}
|
# msystem: ${{ matrix.msystem }}
|
||||||
release: false
|
# release: false
|
||||||
update: true
|
# update: true
|
||||||
pacboy: >-
|
# pacboy: >-
|
||||||
cc:p
|
# cc:p
|
||||||
cmake:p
|
# cmake:p
|
||||||
ninja:p
|
# ninja:p
|
||||||
git:
|
# git:
|
||||||
qt${{ matrix.qt_version }}-base:p
|
# qt${{ matrix.qt_version }}-base:p
|
||||||
qt${{ matrix.qt_version }}-svg:p
|
# qt${{ matrix.qt_version }}-svg:p
|
||||||
qt${{ matrix.qt_version }}-tools:p
|
# qt${{ matrix.qt_version }}-tools:p
|
||||||
qt${{ matrix.qt_version }}-quickcontrols:p
|
# qt${{ matrix.qt_version }}-quickcontrols:p
|
||||||
|
|
||||||
- name: Install MinGW-w64 packages Qt6
|
# - name: Install MinGW-w64 packages Qt6
|
||||||
if: "startsWith(matrix.qt_version, '6')"
|
# if: "startsWith(matrix.qt_version, '6')"
|
||||||
uses: msys2/setup-msys2@v2
|
# uses: msys2/setup-msys2@v2
|
||||||
with:
|
# with:
|
||||||
msystem: ${{ matrix.msystem }}
|
# msystem: ${{ matrix.msystem }}
|
||||||
release: false
|
# release: false
|
||||||
update: true
|
# update: true
|
||||||
pacboy: >-
|
# pacboy: >-
|
||||||
cc:p
|
# cc:p
|
||||||
cmake:p
|
# cmake:p
|
||||||
ninja:p
|
# ninja:p
|
||||||
git:
|
# git:
|
||||||
qt${{ matrix.qt_version }}-base:p
|
# qt${{ matrix.qt_version }}-base:p
|
||||||
qt${{ matrix.qt_version }}-svg:p
|
# qt${{ matrix.qt_version }}-svg:p
|
||||||
qt${{ matrix.qt_version }}-tools:p
|
# qt${{ matrix.qt_version }}-tools:p
|
||||||
qt${{ matrix.qt_version }}-declarative:p
|
# qt${{ matrix.qt_version }}-declarative:p
|
||||||
|
|
||||||
# https://github.com/actions/checkout/issues/1781
|
# # https://github.com/actions/checkout/issues/1781
|
||||||
# workaround https://github.com/actions/checkout/issues/1471#issuecomment-1755560284
|
# # workaround https://github.com/actions/checkout/issues/1471#issuecomment-1755560284
|
||||||
- name: Fetch tags
|
# - name: Fetch tags
|
||||||
run: git fetch --prune --unshallow --tags
|
# run: git fetch --prune --unshallow --tags
|
||||||
|
|
||||||
- name: Configure CMake for Qt5
|
# - name: Configure CMake for Qt5
|
||||||
if: "startsWith(matrix.qt_version, '5')"
|
# if: "startsWith(matrix.qt_version, '5')"
|
||||||
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
# run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
||||||
|
|
||||||
|
|
||||||
- name: Configure CMake for Qt6
|
# - name: Configure CMake for Qt6
|
||||||
if: "startsWith(matrix.qt_version, '6')"
|
# if: "startsWith(matrix.qt_version, '6')"
|
||||||
run: cmake -DUSE_QT6=ON -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
# run: cmake -DUSE_QT6=ON -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -DLIMEREPORT_DEMO=ON -B "${{github.workspace}}/build"
|
||||||
|
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build '${{github.workspace}}/build' --config ${{env.BUILD_TYPE}}
|
# run: cmake --build '${{github.workspace}}/build' --config ${{env.BUILD_TYPE}}
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-${{ matrix.macos_version }}
|
runs-on: macos-${{ matrix.macos_version }}
|
||||||
name: macos-${{ matrix.macos_version }}-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }}
|
name: macos-${{ matrix.macos_version }}-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }}
|
||||||
|
Loading…
Reference in New Issue
Block a user