From 1abe1868491d296324d7d5948862ac34b3731ef9 Mon Sep 17 00:00:00 2001 From: Rot127 <45763064+Rot127@users.noreply.github.com> Date: Wed, 19 Feb 2025 03:56:51 +0000 Subject: [PATCH] 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. --- .github/workflows/build_release.yml | 50 ++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 1bc6e264..17f8b6f8 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -15,31 +15,6 @@ jobs: with: 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 id: archive run: | @@ -64,3 +39,28 @@ jobs: files: | ${{ steps.archive.outputs.tarball }} ${{ 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