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.
This commit is contained in:
parent
eb3336373b
commit
59cca4fc3d
|
@ -15,32 +15,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Configure CMake and build the project
|
- name: Create archive
|
||||||
run: |
|
|
||||||
cmake -B build \
|
|
||||||
-DPROJECT_VERSION=${{ github.event.release.tag_name }} \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DBUILD_SHARED_LIBS=1 \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr
|
|
||||||
cmake --build build
|
|
||||||
|
|
||||||
- name: Package DEB and RPM package
|
|
||||||
run: |
|
|
||||||
cd build
|
|
||||||
cpack -G DEB
|
|
||||||
cpack -G RPM
|
|
||||||
|
|
||||||
- name: Upload debian package to release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.event.release.tag_name }}
|
|
||||||
files: |
|
|
||||||
./build/*.deb
|
|
||||||
./build/*.rpm
|
|
||||||
|
|
||||||
- name: archive
|
|
||||||
id: archive
|
id: archive
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ github.event.release.tag_name }}
|
VERSION=${{ github.event.release.tag_name }}
|
||||||
|
@ -64,3 +39,28 @@ jobs:
|
||||||
files: |
|
files: |
|
||||||
${{ steps.archive.outputs.tarball }}
|
${{ steps.archive.outputs.tarball }}
|
||||||
${{ steps.archive.outputs.shasum }}
|
${{ steps.archive.outputs.shasum }}
|
||||||
|
|
||||||
|
- name: Configure CMake and build the packages
|
||||||
|
run: |
|
||||||
|
cmake -B build \
|
||||||
|
-DPROJECT_VERSION=${{ github.event.release.tag_name }} \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DBUILD_SHARED_LIBS=1 \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
cmake --build build
|
||||||
|
|
||||||
|
- name: Package DEB and RPM package
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
cpack -G DEB
|
||||||
|
cpack -G RPM
|
||||||
|
|
||||||
|
- name: Upload debian package to release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.event.release.tag_name }}
|
||||||
|
files: |
|
||||||
|
./build/*.deb
|
||||||
|
./build/*.rpm
|
||||||
|
|
Loading…
Reference in New Issue