Skip to content
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

cmake: Add a native build job on Ubuntu 20.04 + CMake 3.16 #64

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

hebasto
Copy link
Owner

@hebasto hebasto commented Dec 14, 2023

This PR:

  1. Adds a CI job that uses the minimum required CMake 3.16 and tests the ALLOW_HOST_PACKAGES depends feature.
  2. Fixes tests when Pyrhon is not available.

@hebasto hebasto force-pushed the 231214-cmake-AL branch 4 times, most recently from 6771734 to b2866be Compare December 14, 2023 16:14
@hebasto hebasto marked this pull request as ready for review December 14, 2023 16:17
Copy link

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just some questions.


include(CTest)

if(TARGET bitcoin-util AND TARGET bitcoin-tx)
if(TARGET bitcoin-util AND TARGET bitcoin-tx AND PYTHON_COMMAND)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a warning or something if there is no PYTHON_COMMAND?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Added.


- name: Remove preinstalled CMake
run: |
sudo rm /usr/local/bin/cmake /usr/local/bin/ctest

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something that comes with the github actions image? I do not have this package when I do:

docker pull ubuntu:20.04
docker run -ti --rm ubuntu:20.04 /bin/bash

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something that comes with the github actions image?

It is.

Add python-based tests only when PYTHON_COMMAND is available.
Running for pushes is enough in the cmake-staging branch.
Add a native build job on Ubuntu 20.04 that includes the minimum
required CMake 3.16.
Fix "Cache save failed." warning.
@hebasto
Copy link
Owner Author

hebasto commented Dec 15, 2023

@TheCharlatan

Thank you for your review! Your comments have been addressed.

Copy link

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 53cb2c8

@hebasto hebasto merged commit af3ac22 into cmake-staging Dec 15, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants