diff --git a/.github/workflows/deepin.yml b/.github/workflows/deepin.yml new file mode 100644 index 0000000..ed01a29 --- /dev/null +++ b/.github/workflows/deepin.yml @@ -0,0 +1,35 @@ +name: deepin 25 CI + +on: [push, pull_request, workflow_dispatch] + +jobs: + build-deepin-25-deb: + runs-on: ubuntu-latest + container: + image: linuxdeepin/deepin:crimson + options: --user root + + steps: + - name: Update package lists and install basic tools + run: | + apt update + apt install -y git ca-certificates curl file + - uses: actions/checkout@v4 + - name: Get build dept. + run: | + apt install -y cmake qt6-base-dev qt6-svg-dev qt6-tools-dev libexiv2-dev + - name: Build it + run: | + git config --global --add safe.directory '*' # to avoid "fatal: detected dubious ownership in repository at xxx" + cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . + cmake --build build -j + cd build + cpack -G DEB + - name: Try install it + run: | + cd build + apt install -y ./*.deb + - uses: actions/upload-artifact@v4 + with: + name: deepin-25-deb-package + path: build/*.deb diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 5ab66b4..9ec9a4a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,6 +1,6 @@ name: Ubuntu CI -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] jobs: ubuntu-24-04-build: diff --git a/CMakeLists.txt b/CMakeLists.txt index 17a2a03..13e5383 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -304,7 +304,7 @@ elseif (APPLE) elseif (UNIX) set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) - set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins") + set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat6-plugins") endif() include(CPack)