-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix invalid version string for the bennu .deb - Ensure .deb has a properly formatted version - Set version for everything in cmake to 6.0.0 (not intended to change, just a placeholder) - Add GitHub URL to package metadata - Fix architecture variable - Fix warning with old tags command * refactoring CI for bennu C++ build * apply version fix to pybennu deb as well * WIP on CI * more CI tweaks * sudo is needed * split into separate steps, upload artifacts earlier
- Loading branch information
1 parent
f705575
commit 4bd939d
Showing
6 changed files
with
80 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
# Generate deb package | ||
# CPack DEB documentation: https://cmake.org/cmake/help/latest/cpack_gen/deb.html | ||
# Debian archive description: https://www.debian.org/doc/debian-policy/ch-archive.html | ||
# Debian archive metadata: https://www.debian.org/doc/debian-policy/ch-controlfields.html | ||
|
||
string(TIMESTAMP timestamp "%Y%m%d_%H-%M-%S") | ||
set(CPACK_GENERATOR "DEB") | ||
set(CPACK_STRIP_FILES TRUE) | ||
set(CPACK_DEBIAN_PACKAGE_NAME bennu) | ||
set(CPACK_DEBIAN_PACKAGE_VERSION ${bennu_TAG_HASH}) | ||
set(CPACK_DEBIAN_PACKAGE_ARCHITECHTURE amd64) | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Sandia National Laboratories <emulytics@sandia.gov") | ||
|
||
# "This variable may contain only alphanumerics (A-Za-z0-9) and the characters . + - ~ (full stop, plus, hyphen, tilde) and should start with a digit. If CPACK_DEBIAN_PACKAGE_RELEASE is not set then hyphens are not allowed." | ||
# NOTE: "bennu_VERSION_WITH_COMMIT" gets set in the top-level CMakeLists.txt file | ||
set(CPACK_DEBIAN_PACKAGE_VERSION ${bennu_VERSION_WITH_COMMIT}) | ||
|
||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE amd64) | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Sandia National Laboratories <emulytics@sandia.gov>") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libasio-dev, libboost-date-time-dev, libboost-filesystem-dev, libboost-program-options-dev, libboost-system-dev") | ||
set(CPACK_DEBIAN_PACKAGE_SECTION misc) | ||
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "SCEPTRE ICS Modeling and Simulation Package") | ||
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION}) | ||
set(CPACK_PACKAGE_FILE_NAME "bennu-${CPACK_DEBIAN_PACKAGE_VERSION}_amd64_${timestamp}") | ||
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CMAKE_PROJECT_HOMEPAGE_URL}) | ||
|
||
include(CPack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters