Build Tarball before DEB/RPM package. (#2627)
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
0a012190c7
commit
1abe186849
|
@ -15,31 +15,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Configure CMake and build the project
|
|
||||||
run: |
|
|
||||||
cmake -B build \
|
|
||||||
-DPROJECT_VERSION=${{ github.event.release.tag_name }} \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCAPSTONE_BUILD_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: Create archive
|
- name: Create archive
|
||||||
id: archive
|
id: archive
|
||||||
run: |
|
run: |
|
||||||
|
@ -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 project
|
||||||
|
run: |
|
||||||
|
cmake -B build \
|
||||||
|
-DPROJECT_VERSION=${{ github.event.release.tag_name }} \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCAPSTONE_BUILD_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