Skip to content

Commit

Permalink
拆分了qt各个版本
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt1988 committed Oct 31, 2023
1 parent 6276416 commit 6996b2d
Show file tree
Hide file tree
Showing 32 changed files with 700 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake-Linux-Qt5
name: CMake-Linux-Qt5.12LTS

on: [pull_request,push]

Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [5.14.2,5.15.0]
qt_version: [5.12.*]
shared: [ON]

steps:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/cmake-linux-qt5.13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CMake-Linux-Qt5.13

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [5.13.*]
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: Install Linux dependencies
run: sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev

- 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}}
39 changes: 39 additions & 0 deletions .github/workflows/cmake-linux-qt5.14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CMake-Linux-Qt5.14

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [5.14.*]
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: Install Linux dependencies
run: sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev

- 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}}
39 changes: 39 additions & 0 deletions .github/workflows/cmake-linux-qt5.15.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CMake-Linux-Qt5.15LTS

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [5.15.*]
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: Install Linux dependencies
run: sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev

- 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-Linux-Qt6
name: CMake-Linux-Qt6.0

on: [pull_request,push]

Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [6.2.0,6.5.0]
qt_version: [6.0.*]
shared: [ON]

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

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [6.1.*]
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: Install Linux dependencies
run: |
sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev
- 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}}
40 changes: 40 additions & 0 deletions .github/workflows/cmake-linux-qt6.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CMake-Linux-Qt6.2LTS

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [6.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: Install Linux dependencies
run: |
sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev
- 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}}
40 changes: 40 additions & 0 deletions .github/workflows/cmake-linux-qt6.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CMake-Linux-Qt6.3

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [6.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: Install Linux dependencies
run: |
sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev
- 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}}
40 changes: 40 additions & 0 deletions .github/workflows/cmake-linux-qt6.4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CMake-Linux-Qt6.4

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [6.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: Install Linux dependencies
run: |
sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev
- 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}}
40 changes: 40 additions & 0 deletions .github/workflows/cmake-linux-qt6.5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CMake-Linux-Qt6.5LTS

on: [pull_request,push]

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

jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, latest]
qt_version: [6.5.*]
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: Install Linux dependencies
run: |
sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev
- 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}}
Loading

0 comments on commit 6996b2d

Please sign in to comment.