File tree 1 file changed +26
-26
lines changed
1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change 15
15
with :
16
16
submodules : true
17
17
18
- - name : Configure CMake and build the project
19
- run : |
20
- cmake -B build \
21
- -DPROJECT_VERSION=${{ github.event.release.tag_name }} \
22
- -DCMAKE_BUILD_TYPE=Release \
23
- -DBUILD_SHARED_LIBS=1 \
24
- -DCMAKE_INSTALL_PREFIX=/usr
25
- cmake --build build
26
-
27
- - name : Package DEB and RPM package
28
- run : |
29
- cd build
30
- cpack -G DEB
31
- cpack -G RPM
32
-
33
- - name : Upload debian package to release
34
- uses : softprops/action-gh-release@v2
35
- env :
36
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
- with :
38
- tag_name : ${{ github.event.release.tag_name }}
39
- files : |
40
- ./build/*.deb
41
- ./build/*.rpm
42
-
43
- - name : archive
18
+ - name : Create archive
44
19
id : archive
45
20
run : |
46
21
VERSION=${{ github.event.release.tag_name }}
64
39
files : |
65
40
${{ steps.archive.outputs.tarball }}
66
41
${{ steps.archive.outputs.shasum }}
42
+
43
+ - name : Configure CMake and build the packages
44
+ run : |
45
+ cmake -B build \
46
+ -DPROJECT_VERSION=${{ github.event.release.tag_name }} \
47
+ -DCMAKE_BUILD_TYPE=Release \
48
+ -DBUILD_SHARED_LIBS=1 \
49
+ -DCMAKE_INSTALL_PREFIX=/usr
50
+ cmake --build build
51
+
52
+ - name : Package DEB and RPM package
53
+ run : |
54
+ cd build
55
+ cpack -G DEB
56
+ cpack -G RPM
57
+
58
+ - name : Upload debian package to release
59
+ uses : softprops/action-gh-release@v2
60
+ env :
61
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
+ with :
63
+ tag_name : ${{ github.event.release.tag_name }}
64
+ files : |
65
+ ./build/*.deb
66
+ ./build/*.rpm
You can’t perform that action at this time.
0 commit comments