Skip to content

Commit

Permalink
Generate and upload cpack artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Oct 13, 2024
1 parent 6bb4552 commit d84660f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ jobs:
submodules: true

- name: Create build directory
run: |
mkdir -p build
cd build
run: mkdir -p build

- name: Build and install
id: build
working-directory: build/
shell: bash
run: |
Expand All @@ -98,3 +97,16 @@ jobs:
working-directory: build/
run: ctest -V

- name: CPack
if: ${{ inputs.publish-version != "" }}
shell: bash
run: |
cpack | tee cpack.out
filepath=$(sed -nr 's/.*package: (.+) generated\./\1/p' cpack.out)
echo "filepath=$filepath" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
if: ${{ inputs.publish-version != "" }}
with:
path: ${{ steps.build.outputs.filepath }}

1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ set(CPACK_PACKAGE_VERSION "${CMAKE_PROJECT_VERSION}")
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CMAKE_PROJECT_AUTHOR}")
set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
set(CPACK_GENERATOR "DEB;RPM")

if (BUILD_WITH_QT6)
set(KRUNNER_PACKAGE_VERSION ${KF5Runner_VERSION})
Expand Down

0 comments on commit d84660f

Please sign in to comment.