Skip to content

Commit

Permalink
细分自动ci
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt1988 committed Oct 31, 2023
1 parent 7661a8b commit 7f9e9b3
Show file tree
Hide file tree
Showing 11 changed files with 328 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt5.12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt5.12LTS

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [5.12.0,5.12.12]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt5.13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt5.13

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [5.13.0,5.13.2]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt5.14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt5.14

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [5.14.0,5.14.2]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt5.15.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt5.15

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [5.15.0,5.15.9]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake-Windows-Qt5
name: CMake-Windows-Qt6.0

on: [pull_request,push]

Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [5.14.2,5.15.0]
qt_version: [6.0.0,6.0.4]
shared: [ON]

steps:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt6.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt6.1

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [6.1.0,6.1.3]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt6.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt6.2

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [6.2.0,6.2.4]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt6.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt6.3

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [6.3.0,6.3.2]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt6.4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt6.4

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [6.4.0,6.4.3]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36 changes: 36 additions & 0 deletions .github/workflows/cmake-win-qt6.5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-Windows-Qt6.5

on: [pull_request,push]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
MSVC:
name: windows-${{ matrix.win_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
runs-on: windows-${{ matrix.win_version }}
strategy:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [6.5.0,6.5.3]
shared: [ON]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_EXAMPLES=OFF -B "${{github.workspace}}/build"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake-Windows-Qt6
name: CMake-Windows-Qt6.6

on: [pull_request,push]

Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
win_version: [2019, latest]
qt_version: [6.2.0,6.5.0]
qt_version: [6.6.0]
shared: [ON]

steps:
Expand Down

0 comments on commit 7f9e9b3

Please sign in to comment.