feat(CI): add deepin 25 build
This commit is contained in:
35
.github/workflows/deepin.yml
vendored
Normal file
35
.github/workflows/deepin.yml
vendored
Normal 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
|
||||||
2
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
@ -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:
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user