forked from KarypisLab/METIS
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Add CPack packaging & GitHub Release support
Why:
We need to ship METIS as .tar.gz
/.zip
archives and automatically publish them when a new tag is pushed.
What to do:
-
CMakeLists.txt
include(InstallRequiredSystemLibraries)
+include(CPack)
- Set
CPACK_PACKAGE_NAME
,CPACK_PACKAGE_VERSION
,CPACK_GENERATOR = "TGZ;ZIP"
- Point
CPACK_RESOURCE_FILE_README
&CPACK_RESOURCE_FILE_LICENSE
-
CI (
.github/workflows/ci.yml
)- After
cmake --build
, runcpack
in each build directory - Upload resulting archives as workflow artifacts
- Add a
release
job on tag push that usessoftprops/action-gh-release
to attach those packages
- After
Done when:
cpack
emits both.tar.gz
and.zip
inbuild/<preset>/
- CI artifacts include them
- Pushing
vX.Y.Z
creates a GitHub Release with the packages
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request