This adds some tweaks to build standalone with the currently stated minimums, and then adds a very simple CI running on Debian 10 & Ubuntu 22.04 to give a basic sniff test on if the library is building. I picked Debian 10 to be the "old" test because it mostly lines up with what the repo advertises as its minimum (Debian 10 has gcc8 & boost 1.67).
cmake_minimum_required() needs to go first
Prior to boost 1.69, boost System is a library that needs to be linked with for our usage here. In 1.69+ it's a stub library, so no harm in always including it. (notice Leap's pinned builds still have --with-system, and Leap's instructions just say to apt-get install libboost-all-dev)
On gcc8 an extra library is needed for the std::filesystem usage. Kind of ugly to add this here in this way (it's not as precise as it really ought to be with a try_compile()), but doesn't seem like we'll be maintaining this configuration long anyways so I went with something quick.
This adds some tweaks to build standalone with the currently stated minimums, and then adds a very simple CI running on Debian 10 & Ubuntu 22.04 to give a basic sniff test on if the library is building. I picked Debian 10 to be the "old" test because it mostly lines up with what the repo advertises as its minimum (Debian 10 has gcc8 & boost 1.67).
cmake_minimum_required()
needs to go first--with-system
, and Leap's instructions just say toapt-get install libboost-all-dev
)try_compile()
), but doesn't seem like we'll be maintaining this configuration long anyways so I went with something quick.enable_testing()