Skip to content

Commit 59cca4f

Browse files
authored
Build Tarball before DEB/RPM package. (#2626)
Because it was run after the RPM/DEB package build it contained the 'build' directory with all its files. Which made it way too big.
1 parent eb33363 commit 59cca4f

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/build_release.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,7 @@ jobs:
1515
with:
1616
submodules: true
1717

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
4419
id: archive
4520
run: |
4621
VERSION=${{ github.event.release.tag_name }}
@@ -64,3 +39,28 @@ jobs:
6439
files: |
6540
${{ steps.archive.outputs.tarball }}
6641
${{ 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

0 commit comments

Comments
 (0)