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 37
37
matrix :
38
38
qt_version : [6.0.0]
39
39
platform : [ubuntu-16.04]
40
+ build_type : [Release, RelWithDebInfo]
40
41
arch : [x64]
41
42
fail-fast : false
42
43
83
84
run : |
84
85
mkdir build
85
86
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)"
87
88
cmake --build . --parallel $(nproc)
88
89
cmake --install .
89
90
# ========================================================================================================= Deployments
@@ -110,14 +111,14 @@ jobs:
110
111
- name : Linux - ${{ matrix.qt_version }} - Uploading artifact
111
112
uses : actions/upload-artifact@v2
112
113
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
114
115
path : build/Lemon.AppImage
115
116
- name : Linux - ${{ matrix.qt_version }} - Upload binaries to release
116
117
uses : svenstaro/upload-release-action@v1-release
117
118
if : github.event_name == 'release' && matrix.platform == 'ubuntu-16.04' && matrix.qt_version == '5.15.0'
118
119
with :
119
120
repo_token : ${{ secrets.GITHUB_TOKEN }}
120
121
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
122
123
tag : ${{ github.ref }}
123
124
overwrite : true
Original file line number Diff line number Diff line change 37
37
matrix :
38
38
qt_version : [5.15.2]
39
39
platform : [ubuntu-16.04]
40
+ build_type : [Release, RelWithDebInfo]
40
41
arch : [x64]
41
42
fail-fast : false
42
43
83
84
run : |
84
85
mkdir build
85
86
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)"
87
88
cmake --build . --parallel $(nproc)
88
89
cmake --install .
89
90
# ========================================================================================================= Deployments
@@ -110,14 +111,14 @@ jobs:
110
111
- name : Linux - ${{ matrix.qt_version }} - Uploading artifact
111
112
uses : actions/upload-artifact@v2
112
113
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
114
115
path : build/Lemon.AppImage
115
116
- name : Linux - ${{ matrix.qt_version }} - Upload binaries to release
116
117
uses : svenstaro/upload-release-action@v1-release
117
118
if : github.event_name == 'release' && matrix.platform == 'ubuntu-16.04' && matrix.qt_version == '5.15.0'
118
119
with :
119
120
repo_token : ${{ secrets.GITHUB_TOKEN }}
120
121
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
122
123
tag : ${{ github.ref }}
123
124
overwrite : true
Original file line number Diff line number Diff line change 35
35
fail-fast : false
36
36
matrix :
37
37
distro : [stable, testing, sid]
38
+ build_type : [Release, RelWithDebInfo]
38
39
# distro: [testing, sid]
39
40
needs : check_commit_msg
40
41
if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_DEB') }}
62
63
run : |
63
64
mkdir build
64
65
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)"
66
67
cmake --build . --target package --parallel $(nproc)
67
68
- name : Get package name
68
69
shell : bash
@@ -72,14 +73,14 @@ jobs:
72
73
- name : Upload artifact
73
74
uses : actions/upload-artifact@v2-preview
74
75
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
76
77
path : build/${{ steps.get_package.outputs.NAME }}
77
78
- name : Upload binaries to release
78
79
uses : svenstaro/upload-release-action@v1-release
79
80
if : github.event_name == 'release'
80
81
with :
81
82
repo_token : ${{ secrets.GITHUB_TOKEN }}
82
83
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
84
85
tag : ${{ github.ref }}
85
86
overwrite : true
Original file line number Diff line number Diff line change 35
35
fail-fast : false
36
36
matrix :
37
37
distro : [20.04]
38
+ build_type : [Release, RelWithDebInfo]
38
39
# arch: [x86, x64]
39
40
needs : check_commit_msg
40
41
if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_DEB') }}
66
67
run : |
67
68
mkdir build
68
69
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)"
70
71
cmake --build . --target package
71
72
- name : Get package name
72
73
shell : bash
@@ -76,14 +77,14 @@ jobs:
76
77
- name : Upload artifact
77
78
uses : actions/upload-artifact@v2-preview
78
79
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
80
81
path : build/${{ steps.get_package.outputs.NAME }}
81
82
- name : Upload binaries to release
82
83
uses : svenstaro/upload-release-action@v1-release
83
84
if : github.event_name == 'release'
84
85
with :
85
86
repo_token : ${{ secrets.GITHUB_TOKEN }}
86
87
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
88
89
tag : ${{ github.ref }}
89
90
overwrite : true
Original file line number Diff line number Diff line change 35
35
fail-fast : false
36
36
matrix :
37
37
distro : [rawhide, latest, 32]
38
+ build_type : [Release, RelWithDebInfo]
38
39
# distro: [testing, sid]
39
40
needs : check_commit_msg
40
41
if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_RPM') }}
62
63
run : |
63
64
mkdir build
64
65
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)"
66
67
cmake --build . --target package --parallel $(nproc)
67
68
- name : Get package name
68
69
shell : bash
72
73
- name : Upload artifact
73
74
uses : actions/upload-artifact@v2-preview
74
75
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
76
77
path : build/${{ steps.get_package.outputs.NAME }}
77
78
# - name: Upload binaries to release
78
79
# uses: svenstaro/upload-release-action@v1-release
Original file line number Diff line number Diff line change 35
35
fail-fast : false
36
36
matrix :
37
37
distro : [15, latest]
38
+ build_type : [Release, RelWithDebInfo]
38
39
# distro: [testing, sid]
39
40
needs : check_commit_msg
40
41
if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_RPM') }}
62
63
run : |
63
64
mkdir build
64
65
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)"
66
67
cmake --build . --target package --parallel $(nproc)
67
68
- name : Get package name
68
69
shell : bash
72
73
- name : Upload artifact
73
74
uses : actions/upload-artifact@v2-preview
74
75
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
76
77
path : build/${{ steps.get_package.outputs.NAME }}
77
78
# - name: Upload binaries to release
78
79
# uses: svenstaro/upload-release-action@v1-release
Original file line number Diff line number Diff line change 35
35
fail-fast : false
36
36
matrix :
37
37
distro : [latest]
38
+ build_type : [Release, RelWithDebInfo]
38
39
# distro: [testing, sid]
39
40
needs : check_commit_msg
40
41
if : ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_RPM') }}
62
63
run : |
63
64
mkdir build
64
65
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)"
66
67
cmake --build . --target package --parallel $(nproc)
67
68
- name : Get package name
68
69
shell : bash
72
73
- name : Upload artifact
73
74
uses : actions/upload-artifact@v2-preview
74
75
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
76
77
path : build/${{ steps.get_package.outputs.NAME }}
77
78
# - name: Upload binaries to release
78
79
# uses: svenstaro/upload-release-action@v1-release
Original file line number Diff line number Diff line change 19
19
strategy :
20
20
matrix :
21
21
os : [macos-latest]
22
+ build_type : [Release, RelWithDebInfo]
22
23
qt_ver : [6.0.0]
23
24
qt_arch : [clang_64]
24
25
env :
57
58
run : |
58
59
cmake . \
59
60
-GNinja \
60
- -DCMAKE_BUILD_TYPE=Release \
61
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
61
62
-DLEMON_QT6=ON \
62
63
-DLEMON_BUILD_INFO="Build for macOS" \
63
64
-DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)" \
@@ -75,13 +76,13 @@ jobs:
75
76
- name : Upload artifact
76
77
uses : actions/upload-artifact@v2-preview
77
78
with :
78
- name : ${{ env.targetName }}.dmg
79
+ name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
79
80
path : ${{ env.targetName }}.dmg
80
81
- name : uploadRelease
81
82
if : startsWith(github.event.ref, 'refs/tags/')
82
83
uses : svenstaro/upload-release-action@v1-release
83
84
with :
84
85
repo_token : ${{ secrets.GITHUB_TOKEN }}
85
86
file : ./${{ env.targetName }}.dmg
86
- asset_name : ${{ env.targetName }}.dmg
87
+ asset_name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
87
88
tag : ${{ github.ref }}
Original file line number Diff line number Diff line change 19
19
strategy :
20
20
matrix :
21
21
os : [macos-latest]
22
+ build_type : [Release, RelWithDebInfo]
22
23
qt_ver : [5.15.2]
23
24
qt_arch : [clang_64]
24
25
env :
55
56
env :
56
57
Qt5_DIR : ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
57
58
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
59
60
cmake --build . --parallel $(sysctl -n hw.logicalcpu)
60
61
# tag 打包
61
62
- name : package
@@ -69,13 +70,13 @@ jobs:
69
70
- name : Upload artifact
70
71
uses : actions/upload-artifact@v2-preview
71
72
with :
72
- name : ${{ env.targetName }}.dmg
73
+ name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
73
74
path : ${{ env.targetName }}.dmg
74
75
- name : uploadRelease
75
76
if : startsWith(github.event.ref, 'refs/tags/')
76
77
uses : svenstaro/upload-release-action@v1-release
77
78
with :
78
79
repo_token : ${{ secrets.GITHUB_TOKEN }}
79
80
file : ./${{ env.targetName }}.dmg
80
- asset_name : ${{ env.targetName }}.dmg
81
+ asset_name : ${{ env.targetName }}-${{ matrix.build_type }} .dmg
81
82
tag : ${{ github.ref }}
Original file line number Diff line number Diff line change 22
22
strategy :
23
23
matrix :
24
24
qt_version : [6.0.0]
25
+ build_type : [Release, RelWithDebInfo]
25
26
platform : [windows-latest]
26
27
include :
27
28
- platform : windows-latest
79
80
run : |
80
81
cmake . \
81
82
-GNinja \
82
- -DCMAKE_BUILD_TYPE=Release \
83
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
83
84
-DLEMON_QT6=ON \
84
85
-DLEMON_BUILD_INFO="Build for Windows" \
85
86
-DLEMON_BUILD_EXTRA_INFO="Build on Windows x64" \
@@ -106,14 +107,14 @@ jobs:
106
107
- name : Upload artifact
107
108
uses : actions/upload-artifact@v2-preview
108
109
with :
109
- name : lemon-win-qt6-x64.zip
110
+ name : lemon-win-qt6-x64-${{ matrix.build_type }} .zip
110
111
path : ${{ env.packageName }}.zip
111
112
- name : uploadRelease
112
113
if : startsWith(github.event.ref, 'refs/tags/')
113
114
uses : svenstaro/upload-release-action@v1-release
114
115
with :
115
116
repo_token : ${{ secrets.GITHUB_TOKEN }}
116
117
file : ./${{ env.packageName }}.zip
117
- asset_name : lemon-win-qt6-x64.zip
118
+ asset_name : lemon-win-qt6-x64-${{ matrix.build_type }} .zip
118
119
tag : ${{ github.ref }}
119
120
overwrite : true
You can’t perform that action at this time.
0 commit comments