File tree Expand file tree Collapse file tree 12 files changed +42
-31
lines changed Expand file tree Collapse file tree 12 files changed +42
-31
lines changed Original file line number Diff line number Diff line change 3737 matrix :
3838 qt_version : [6.0.0]
3939 platform : [ubuntu-16.04]
40+ build_type : [Release, RelWithDebInfo]
4041 arch : [x64]
4142 fail-fast : false
4243
8384 run : |
8485 mkdir build
8586 cd build
86- cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./AppDir/usr -DCMAKE_BUILD_TYPE=Release -DLEMON_BUILD_INFO="Build for AppImage" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
87+ cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./AppDir/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DLEMON_BUILD_INFO="Build for AppImage" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
8788 cmake --build . --parallel $(nproc)
8889 cmake --install .
8990 # ========================================================================================================= Deployments
@@ -110,14 +111,14 @@ jobs:
110111 - name : Linux - ${{ matrix.qt_version }} - Uploading artifact
111112 uses : actions/upload-artifact@v2
112113 with :
113- name : Lemon-${{ github.sha }}.linux-${{ matrix.arch }}.qt${{ matrix.qt_version }}.AppImage
114+ name : Lemon-${{ github.sha }}.linux-${{ matrix.arch }}.qt${{ matrix.qt_version }}-${{ matrix.build_type }} .AppImage
114115 path : build/Lemon.AppImage
115116 - name : Linux - ${{ matrix.qt_version }} - Upload binaries to release
116117 uses : svenstaro/upload-release-action@v1-release
117118 if : github.event_name == 'release' && matrix.platform == 'ubuntu-16.04' && matrix.qt_version == '5.15.0'
118119 with :
119120 repo_token : ${{ secrets.GITHUB_TOKEN }}
120121 file : build/Lemon.AppImage
121- asset_name : Lemon.${{ steps.get_version.outputs.VERSION }}.linux-qt6-${{ matrix.arch }}.AppImage
122+ asset_name : Lemon.${{ steps.get_version.outputs.VERSION }}.linux-qt6-${{ matrix.arch }}-${{ matrix.build_type }} .AppImage
122123 tag : ${{ github.ref }}
123124 overwrite : true
Original file line number Diff line number Diff line change 3737 matrix :
3838 qt_version : [5.15.2]
3939 platform : [ubuntu-16.04]
40+ build_type : [Release, RelWithDebInfo]
4041 arch : [x64]
4142 fail-fast : false
4243
8384 run : |
8485 mkdir build
8586 cd build
86- cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./AppDir/usr -DCMAKE_BUILD_TYPE=Release -DLEMON_BUILD_INFO="Build for AppImage" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
87+ cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=./AppDir/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DLEMON_BUILD_INFO="Build for AppImage" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
8788 cmake --build . --parallel $(nproc)
8889 cmake --install .
8990 # ========================================================================================================= Deployments
@@ -110,14 +111,14 @@ jobs:
110111 - name : Linux - ${{ matrix.qt_version }} - Uploading artifact
111112 uses : actions/upload-artifact@v2
112113 with :
113- name : Lemon-${{ github.sha }}.linux-${{ matrix.arch }}.qt${{ matrix.qt_version }}.AppImage
114+ name : Lemon-${{ github.sha }}.linux-${{ matrix.arch }}.qt${{ matrix.qt_version }}-${{ matrix.build_type }} .AppImage
114115 path : build/Lemon.AppImage
115116 - name : Linux - ${{ matrix.qt_version }} - Upload binaries to release
116117 uses : svenstaro/upload-release-action@v1-release
117118 if : github.event_name == 'release' && matrix.platform == 'ubuntu-16.04' && matrix.qt_version == '5.15.0'
118119 with :
119120 repo_token : ${{ secrets.GITHUB_TOKEN }}
120121 file : build/Lemon.AppImage
121- asset_name : Lemon.${{ steps.get_version.outputs.VERSION }}.linux-${{ matrix.arch }}.AppImage
122+ asset_name : Lemon.${{ steps.get_version.outputs.VERSION }}.linux-${{ matrix.arch }}-${{ matrix.build_type }} .AppImage
122123 tag : ${{ github.ref }}
123124 overwrite : true
Original file line number Diff line number Diff line change 3535 fail-fast : false
3636 matrix :
3737 distro : [stable, testing, sid]
38+ build_type : [Release, RelWithDebInfo]
3839 # distro: [testing, sid]
3940 needs : check_commit_msg
4041 if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_DEB') }}
6263 run : |
6364 mkdir build
6465 cd build
65- cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_DEB=ON -DLEMON_BUILD_INFO="Build for Debian" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
66+ cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_DEB=ON -DLEMON_BUILD_INFO="Build for Debian" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
6667 cmake --build . --target package --parallel $(nproc)
6768 - name : Get package name
6869 shell : bash
@@ -72,14 +73,14 @@ jobs:
7273 - name : Upload artifact
7374 uses : actions/upload-artifact@v2-preview
7475 with :
75- name : LemonLime-${{ steps.get_version.outputs.VERSION }}-debian-${{ matrix.distro }}.deb
76+ name : LemonLime-${{ steps.get_version.outputs.VERSION }}-debian-${{ matrix.distro }}-${{ matrix.build_type }} .deb
7677 path : build/${{ steps.get_package.outputs.NAME }}
7778 - name : Upload binaries to release
7879 uses : svenstaro/upload-release-action@v1-release
7980 if : github.event_name == 'release'
8081 with :
8182 repo_token : ${{ secrets.GITHUB_TOKEN }}
8283 file : build/${{ steps.get_package.outputs.NAME }}
83- asset_name : LemonLime-${{ steps.get_version.outputs.VERSION }}-debian-${{ matrix.distro }}.deb
84+ asset_name : LemonLime-${{ steps.get_version.outputs.VERSION }}-debian-${{ matrix.distro }}-${{ matrix.build_type }} .deb
8485 tag : ${{ github.ref }}
8586 overwrite : true
Original file line number Diff line number Diff line change 3535 fail-fast : false
3636 matrix :
3737 distro : [20.04]
38+ build_type : [Release, RelWithDebInfo]
3839 # arch: [x86, x64]
3940 needs : check_commit_msg
4041 if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_DEB') }}
6667 run : |
6768 mkdir build
6869 cd build
69- cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_DEB=ON -DLEMON_BUILD_INFO="Build for Ubuntu" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
70+ cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_DEB=ON -DLEMON_BUILD_INFO="Build for Ubuntu" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
7071 cmake --build . --target package
7172 - name : Get package name
7273 shell : bash
@@ -76,14 +77,14 @@ jobs:
7677 - name : Upload artifact
7778 uses : actions/upload-artifact@v2-preview
7879 with :
79- name : LemonLime-${{ steps.get_version.outputs.VERSION }}-ubuntu-${{ matrix.distro }}.deb
80+ name : LemonLime-${{ steps.get_version.outputs.VERSION }}-ubuntu-${{ matrix.distro }}-${{ matrix.build_type }} .deb
8081 path : build/${{ steps.get_package.outputs.NAME }}
8182 - name : Upload binaries to release
8283 uses : svenstaro/upload-release-action@v1-release
8384 if : github.event_name == 'release'
8485 with :
8586 repo_token : ${{ secrets.GITHUB_TOKEN }}
8687 file : build/${{ steps.get_package.outputs.NAME }}
87- asset_name : LemonLime-${{ steps.get_version.outputs.VERSION }}-ubuntu-${{ matrix.distro }}.deb
88+ asset_name : LemonLime-${{ steps.get_version.outputs.VERSION }}-ubuntu-${{ matrix.distro }}-${{ matrix.build_type }} .deb
8889 tag : ${{ github.ref }}
8990 overwrite : true
Original file line number Diff line number Diff line change 3535 fail-fast : false
3636 matrix :
3737 distro : [rawhide, latest, 32]
38+ build_type : [Release, RelWithDebInfo]
3839 # distro: [testing, sid]
3940 needs : check_commit_msg
4041 if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_RPM') }}
6263 run : |
6364 mkdir build
6465 cd build
65- cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_RPM=ON -DLEMON_BUILD_INFO="Build for Fedora" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
66+ cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_RPM=ON -DLEMON_BUILD_INFO="Build for Fedora" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
6667 cmake --build . --target package --parallel $(nproc)
6768 - name : Get package name
6869 shell : bash
7273 - name : Upload artifact
7374 uses : actions/upload-artifact@v2-preview
7475 with :
75- name : LemonLime-${{ steps.get_version.outputs.VERSION }}-Fedora-${{ matrix.distro }}.rpm
76+ name : LemonLime-${{ steps.get_version.outputs.VERSION }}-Fedora-${{ matrix.distro }}-${{ matrix.build_type }} .rpm
7677 path : build/${{ steps.get_package.outputs.NAME }}
7778# - name: Upload binaries to release
7879# uses: svenstaro/upload-release-action@v1-release
Original file line number Diff line number Diff line change 3535 fail-fast : false
3636 matrix :
3737 distro : [15, latest]
38+ build_type : [Release, RelWithDebInfo]
3839 # distro: [testing, sid]
3940 needs : check_commit_msg
4041 if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_RPM') }}
6263 run : |
6364 mkdir build
6465 cd build
65- cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_RPM=ON -DLEMON_BUILD_INFO="Build for openSUSE Leap" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
66+ cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_RPM=ON -DLEMON_BUILD_INFO="Build for openSUSE Leap" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
6667 cmake --build . --target package --parallel $(nproc)
6768 - name : Get package name
6869 shell : bash
7273 - name : Upload artifact
7374 uses : actions/upload-artifact@v2-preview
7475 with :
75- name : LemonLime-${{ steps.get_version.outputs.VERSION }}-openSUSE-Leap-${{ matrix.distro }}.rpm
76+ name : LemonLime-${{ steps.get_version.outputs.VERSION }}-openSUSE-Leap-${{ matrix.distro }}-${{ matrix.build_type }} .rpm
7677 path : build/${{ steps.get_package.outputs.NAME }}
7778# - name: Upload binaries to release
7879# uses: svenstaro/upload-release-action@v1-release
Original file line number Diff line number Diff line change 3535 fail-fast : false
3636 matrix :
3737 distro : [latest]
38+ build_type : [Release, RelWithDebInfo]
3839 # distro: [testing, sid]
3940 needs : check_commit_msg
4041 if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_RPM') }}
6263 run : |
6364 mkdir build
6465 cd build
65- cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_RPM=ON -DLEMON_BUILD_INFO="Build for openSUSE TW" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
66+ cmake .. -GNinja -DEMBED_TRANSLATIONS=OFF -DEMBED_DOCS=OFF -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_RPM=ON -DLEMON_BUILD_INFO="Build for openSUSE TW" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)"
6667 cmake --build . --target package --parallel $(nproc)
6768 - name : Get package name
6869 shell : bash
7273 - name : Upload artifact
7374 uses : actions/upload-artifact@v2-preview
7475 with :
75- name : LemonLime-${{ steps.get_version.outputs.VERSION }}-openSUSE-TW-${{ matrix.distro }}.rpm
76+ name : LemonLime-${{ steps.get_version.outputs.VERSION }}-openSUSE-TW-${{ matrix.distro }}-${{ matrix.build_type }} .rpm
7677 path : build/${{ steps.get_package.outputs.NAME }}
7778# - name: Upload binaries to release
7879# uses: svenstaro/upload-release-action@v1-release
Original file line number Diff line number Diff line change 1919 strategy :
2020 matrix :
2121 os : [macos-latest]
22+ build_type : [Release, RelWithDebInfo]
2223 qt_ver : [6.0.0]
2324 qt_arch : [clang_64]
2425 env :
5758 run : |
5859 cmake . \
5960 -GNinja \
60- -DCMAKE_BUILD_TYPE=Release \
61+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
6162 -DLEMON_QT6=ON \
6263 -DLEMON_BUILD_INFO="Build for macOS" \
6364 -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)" \
@@ -75,13 +76,13 @@ jobs:
7576 - name : Upload artifact
7677 uses : actions/upload-artifact@v2-preview
7778 with :
78- name : ${{ env.targetName }}.dmg
79+ name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
7980 path : ${{ env.targetName }}.dmg
8081 - name : uploadRelease
8182 if : startsWith(github.event.ref, 'refs/tags/')
8283 uses : svenstaro/upload-release-action@v1-release
8384 with :
8485 repo_token : ${{ secrets.GITHUB_TOKEN }}
8586 file : ./${{ env.targetName }}.dmg
86- asset_name : ${{ env.targetName }}.dmg
87+ asset_name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
8788 tag : ${{ github.ref }}
Original file line number Diff line number Diff line change 1919 strategy :
2020 matrix :
2121 os : [macos-latest]
22+ build_type : [Release, RelWithDebInfo]
2223 qt_ver : [5.15.2]
2324 qt_arch : [clang_64]
2425 env :
5556 env :
5657 Qt5_DIR : ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
5758 run : |
58- cmake . -GNinja -DCMAKE_BUILD_TYPE=Release -DLEMON_BUILD_INFO="Build for macOS" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
59+ cmake . -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DLEMON_BUILD_INFO="Build for macOS" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
5960 cmake --build . --parallel $(sysctl -n hw.logicalcpu)
6061 # tag 打包
6162 - name : package
@@ -69,13 +70,13 @@ jobs:
6970 - name : Upload artifact
7071 uses : actions/upload-artifact@v2-preview
7172 with :
72- name : ${{ env.targetName }}.dmg
73+ name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
7374 path : ${{ env.targetName }}.dmg
7475 - name : uploadRelease
7576 if : startsWith(github.event.ref, 'refs/tags/')
7677 uses : svenstaro/upload-release-action@v1-release
7778 with :
7879 repo_token : ${{ secrets.GITHUB_TOKEN }}
7980 file : ./${{ env.targetName }}.dmg
80- asset_name : ${{ env.targetName }}.dmg
81+ asset_name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
8182 tag : ${{ github.ref }}
Original file line number Diff line number Diff line change 2222 strategy :
2323 matrix :
2424 qt_version : [6.0.0]
25+ build_type : [Release, RelWithDebInfo]
2526 platform : [windows-latest]
2627 include :
2728 - platform : windows-latest
7980 run : |
8081 cmake . \
8182 -GNinja \
82- -DCMAKE_BUILD_TYPE=Release \
83+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
8384 -DLEMON_QT6=ON \
8485 -DLEMON_BUILD_INFO="Build for Windows" \
8586 -DLEMON_BUILD_EXTRA_INFO="Build on Windows x64" \
@@ -106,14 +107,14 @@ jobs:
106107 - name : Upload artifact
107108 uses : actions/upload-artifact@v2-preview
108109 with :
109- name : lemon-win-qt6-x64.zip
110+ name : lemon-win-qt6-x64-${{ matrix.build_type }} .zip
110111 path : ${{ env.packageName }}.zip
111112 - name : uploadRelease
112113 if : startsWith(github.event.ref, 'refs/tags/')
113114 uses : svenstaro/upload-release-action@v1-release
114115 with :
115116 repo_token : ${{ secrets.GITHUB_TOKEN }}
116117 file : ./${{ env.packageName }}.zip
117- asset_name : lemon-win-qt6-x64.zip
118+ asset_name : lemon-win-qt6-x64-${{ matrix.build_type }} .zip
118119 tag : ${{ github.ref }}
119120 overwrite : true
You can’t perform that action at this time.
0 commit comments