-
Notifications
You must be signed in to change notification settings - Fork 86
Creating Debian packages #732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # Prepares a deb package of Storm | ||
| name: Release deb package | ||
|
|
||
| on: | ||
| # needed to trigger the workflow manually | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| # GitHub runners currently have 4 cores | ||
| NR_JOBS: "4" | ||
|
|
||
| jobs: | ||
| debian: | ||
| name: Debian package on ${{ matrix.distro.name }}-${{ matrix.platform.name }} | ||
| runs-on: ${{ matrix.platform.runner }} | ||
| strategy: | ||
| matrix: | ||
| distro: | ||
| - {name: "debian:12", | ||
| tag: "debian-12", | ||
| build_type: "Release" | ||
| } | ||
| - {name: "debian:13", | ||
| tag: "debian-13", | ||
| build_type: "Release" | ||
| } | ||
| - {name: "ubuntu:24.04", | ||
| tag: "ubuntu-24.04", | ||
| build_type: "Release" | ||
| } | ||
| - {name: "ubuntu:rolling", | ||
| tag: "latest", | ||
| build_type: "Release" | ||
| } | ||
| platform: | ||
| - {name: amd64, runner: "ubuntu-latest"} | ||
| - {name: arm64, runner: "ubuntu-24.04-arm"} | ||
| fail-fast: false | ||
| steps: | ||
| - name: Git clone | ||
| uses: actions/checkout@v6 | ||
| - name: Build storm from Dockerfile | ||
| run: | | ||
| docker build -t movesrwth/storm:ci . \ | ||
| --build-arg BASE_IMAGE=movesrwth/storm-basesystem:${{ matrix.distro.tag }} \ | ||
| --build-arg build_type="${{ matrix.distro.build_type }}" \ | ||
| --build-arg carl_tag="master" \ | ||
| --build-arg cmake_args="-DSTORM_BUILD_TESTS=OFF" \ | ||
| --build-arg no_threads=${NR_JOBS} | ||
| # Omitting arguments developer, disable_*, cln_exact, cln_ratfunc, all_sanitizers | ||
| - name: Run Docker | ||
| run: docker run -d -it --name ci movesrwth/storm:ci | ||
| - name: Create package | ||
| run: docker exec ci bash -c "cd /opt/storm/build; make package" | ||
| - name: Copy package | ||
| run: | | ||
| docker exec ci bash -c "mkdir /opt/package; cp /opt/storm/build/*.deb /opt/package/" | ||
| docker cp ci:/opt/package . | ||
| - uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: storm-deb-${{ matrix.distro.tag }}-${{ matrix.platform.name }} | ||
| path: ./package/*.deb | ||
| - name: Test package | ||
| run: | | ||
| docker run -d -it --name ci-test ${{ matrix.distro.name }} | ||
| docker cp package/*.deb ci-test:/opt/ | ||
| docker exec ci-test bash -c "apt-get update; apt-get install -y /opt/*.deb" | ||
| docker exec ci-test bash -c "storm --version" | ||
| - name: Build starter project using Storm package | ||
| run: | | ||
| docker exec ci-test bash -c "apt-get install -y build-essential ca-certificates cmake git" | ||
| docker exec ci-test bash -c "git clone https://github.com/stormchecker/storm-project-starter-cpp /opt/storm-starter" | ||
| docker exec ci-test bash -c "mkdir -p /opt/storm-starter/build; cd /opt/storm-starter/build; cmake -DNEVER_FETCH_STORM=TRUE .." | ||
| docker exec ci-test bash -c "cd /opt/storm-starter/build; make -j ${NR_JOBS}" | ||
| docker exec ci-test bash -c "/opt/storm-starter/build/bin/starter-project /opt/storm-starter/examples/die.pm /opt/storm-starter/examples/die.pctl" | ||
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| include(InstallRequiredSystemLibraries) | ||
|
|
||
| ### General settings | ||
| # General project information is taken from the project() variables | ||
| set(CPACK_PACKAGE_NAME ${PROJECT_NAME}) | ||
| set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION}) | ||
| set(CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR}) | ||
| set(CPACK_PACKAGE_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR}) | ||
| set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH}) | ||
| set(CPACK_PACKAGE_VENDOR "Storm Developers") | ||
| set(CPACK_PACKAGE_CONTACT "support@stormchecker.org") | ||
| set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") | ||
| set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
| set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") | ||
|
|
||
| set(CPACK_GENERATOR "DEB") | ||
|
|
||
| ### Source package configuration | ||
| # The support is limited and we recommend to use "git archive" instead | ||
| set(CPACK_SOURCE_GENERATOR "TGZ") | ||
|
volkm marked this conversation as resolved.
|
||
| set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]git/;.gitignore;/build/;tags;cscope.*") | ||
| set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-src") | ||
|
|
||
| # Debian package | ||
| set(CPACK_DEBIAN_PACKAGE_DEPENDS "libarchive-dev, libboost-dev, libcln-dev, libginac-dev, libglpk-dev, libgmp-dev, libxerces-c-dev, libz3-dev") | ||
|
|
||
| include(CPack) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is ubuntu:rolling the same as ubuntu 25.10 right now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
26.04 will be out on April 23rd