Skip to content

Commit 916a3af

Browse files
author
Kasper Peeters
committed
Update packaging scripts and add more verbose output to main CMakeLists.txt.
1 parent 0e399a9 commit 916a3af

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/ubuntu-package.yml renamed to .github/workflows/ubuntu-22.04-package.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,9 @@ jobs:
5252
echo "VERSION=$VER" >> $GITHUB_ENV
5353
5454
- name: Upload Release Assets
55-
run: |
56-
gh release upload "${{ env.VERSION }}" build/cadabra2-${{ env.VERSION }}-jammy.deb --clobber
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
run: |
56+
gh release upload "${{ env.VERSION }}" build/cadabra2-${{ env.VERSION }}-jammy.deb --clobber
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959

60-
# - name: Upload artifact to github assets
61-
# uses: actions/upload-artifact@main
62-
# with:
63-
# name: cadabra2-${{ env.VERSION }}-jammy.deb
64-
# path: build/cadabra2-${{ env.VERSION }}-jammy.deb
6560

.github/workflows/ubuntu-24.04-package.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,4 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959

60-
# - name: Upload artifact to github assets
61-
# uses: actions/upload-artifact@main
62-
# with:
63-
# name: cadabra2-${{ env.VERSION }}-jammy.deb
64-
# path: build/cadabra2-${{ env.VERSION }}-jammy.deb
6560

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@ set(CADABRA_CMAKE_VERSION 3.12)
55

66
if(POLICY CMP0042)
77
cmake_policy(SET CMP0042 NEW)
8+
message(STATUS "Set CMake policy CM0042 to NEW")
89
endif()
910
if(POLICY CMP0054)
1011
cmake_policy(SET CMP0054 NEW)
12+
message(STATUS "Set CMake policy CM0054 to NEW")
1113
endif()
1214
if(POLICY CMP0127)
1315
cmake_policy(SET CMP0127 NEW)
16+
message(STATUS "Set CMake policy CM0127 to NEW")
1417
endif()
1518
if(POLICY CMP0148)
1619
cmake_policy(SET CMP0148 NEW)
20+
message(STATUS "Set CMake policy CM0148 to NEW")
1721
endif()
1822
if(POLICY CMP0167)
1923
cmake_policy(SET CMP0167 NEW)
24+
message(STATUS "Set CMake policy CM0167 to NEW")
2025
endif()
2126

2227
cmake_minimum_required(VERSION ${CADABRA_CMAKE_VERSION})

cmake/packaging.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,13 @@ else()
152152
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, libgmpxx4ldbl, libboost-system1.71.0, libboost-filesystem1.71.0, libboost-program-options1.71.0, libboost-regex1.71.0, libstdc++6, uuid-runtime, libgtkmm-3.0-1v5, texlive, texlive-latex-extra, texlive-science, python3-matplotlib, python3-mpmath, dvipng, python3-sympy, python3-gmpy2")
153153
message("-- This is an Ubuntu 20.04 system")
154154
endif()
155-
if(LINUX_ISSUE MATCHES "24.04")
155+
if(LINUX_ISSUE MATCHES "22.04")
156156
set(CPACK_SYSTEM_NAME "jammy")
157+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, libgmpxx4ldbl, libboost-system1.74.0, libboost-filesystem1.74.0, libboost-program-options1.74.0, libboost-regex1.74.0, libstdc++6, uuid-runtime, libgtkmm-3.0-1v5, python3-matplotlib, python3-mpmath, python3-sympy, python3-gmpy2")
158+
message("-- This is an Ubuntu 22.04 system")
159+
endif()
160+
if(LINUX_ISSUE MATCHES "24.04")
161+
set(CPACK_SYSTEM_NAME "noble")
157162
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, libgmpxx4ldbl, libboost-system1.83.0, libboost-filesystem1.83.0, libboost-program-options1.83.0, libboost-regex1.83.0, libstdc++6, uuid-runtime, libgtkmm-3.0-1t64, python3-matplotlib, python3-mpmath, python3-sympy, python3-gmpy2")
158163
message("-- This is an Ubuntu 24.04 system")
159164
endif()

0 commit comments

Comments
 (0)