feat(CI): add deepin 25 build

This commit is contained in:
2025-12-17 00:01:30 +08:00
parent aa025b0f3b
commit afcd126c00
3 changed files with 37 additions and 2 deletions

35
.github/workflows/deepin.yml vendored Normal file
View File

@ -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

View File

@ -1,6 +1,6 @@
name: Ubuntu CI name: Ubuntu CI
on: [push, pull_request] on: [push, pull_request, workflow_dispatch]
jobs: jobs:
ubuntu-24-04-build: ubuntu-24-04-build:

View File

@ -304,7 +304,7 @@ elseif (APPLE)
elseif (UNIX) elseif (UNIX)
set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins") set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat6-plugins")
endif() endif()
include(CPack) include(CPack)