0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-24 16:18:04 +03:00

Update cmake.yml

This commit is contained in:
Alexander Arin
2025-11-21 19:27:42 +03:00
committed by GitHub
parent c1ed960fd4
commit ea4bd2f60f

View File

@@ -174,44 +174,44 @@ 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}}
macos: # macos:
runs-on: macos-latest # runs-on: macos-latest
name: macos-latest-Qt-${{ matrix.qt_version }}-static-${{ matrix.static }} # name: macos-latest-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:
macos_version: [12] # macos_version: [12]
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}}