Test installed headers in ci.yml

This commit is contained in:
Peter Dimov
2026-04-25 20:44:49 +03:00
parent a243315ec3
commit 6dfedc3f3c
2 changed files with 167 additions and 2 deletions
+11 -2
View File
@@ -690,13 +690,18 @@ jobs:
cmake --build . --config MinSizeRel && cmake --build . --config MinSizeRel --target check
cmake --build . --config RelWithDebInfo && cmake --build . --config RelWithDebInfo --target check
posix-check-installed-files:
posix-check-installed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install packages
run: |
sudo apt-get update
sudo apt-get -y install libopenmpi-dev libpython3-dev
- name: Install Boost
run: |
echo GITHUB_BASE_REF: $GITHUB_BASE_REF
@@ -715,10 +720,14 @@ jobs:
./bootstrap.sh
./b2 -j3 --prefix=$HOME/.local --with-headers install
- name: Test installed headers
run: |
g++ -I ~/.local/include -I /usr/include/python3.12 -std=c++20 -c test/headers/include.cpp
- name: Check installed files
run: |
test -f ~/.local/share/boost_predef/build.jam
test -f ~/.local/lib/cmake/BoostDetectToolset-1.92.0.cmake
test -f ~/.local/lib/cmake/BoostDetectToolset-*.cmake
test -f ~/.local/lib/cmake/Boost-*/BoostConfig.cmake
test -f ~/.local/lib/cmake/Boost-*/BoostConfigVersion.cmake
test -f ~/.local/lib/cmake/boost_headers-*/boost_headers-config.cmake
+156
View File
@@ -0,0 +1,156 @@
// accumulators
// algorithm
#include "boost/align.hpp"
#include "boost/any.hpp"
#include "boost/array.hpp"
#include "boost/asio.hpp"
#include "boost/assert.hpp"
#include "boost/assign.hpp"
#include "boost/atomic.hpp"
#include "boost/beast.hpp"
#include "boost/bimap.hpp"
#include "boost/bind/bind.hpp"
#include "boost/bloom.hpp"
#include "boost/callable_traits.hpp"
#include "boost/charconv.hpp"
#include "boost/chrono.hpp"
#include "boost/circular_buffer.hpp"
#include "boost/cobalt.hpp"
// compat
#include "boost/compute/version.hpp"
#include "boost/concept_check.hpp"
#include "boost/config.hpp"
// container
// container_hash
// context
#include "boost/contract.hpp"
// conversion
#include "boost/convert.hpp"
// core
// coroutine
// coroutine2
#include "boost/crc.hpp"
#include "boost/date_time.hpp"
#include "boost/decimal.hpp"
#include "boost/describe.hpp"
// detail
#include "boost/dll.hpp"
#include "boost/dynamic_bitset.hpp"
#include "boost/endian.hpp"
#include "boost/exception_ptr.hpp"
// fiber
#include "boost/filesystem.hpp"
#include "boost/flyweight.hpp"
#include "boost/foreach.hpp"
#include "boost/format.hpp"
#include "boost/function.hpp"
#include "boost/functional.hpp"
// function_types
// fusion
#include "boost/geometry.hpp"
#include "boost/gil.hpp"
// graph
// graph_parallel
#include "boost/hana.hpp"
// hash2
#include "boost/histogram.hpp"
#include "boost/hof.hpp"
// icl
#include "boost/integer.hpp"
// interprocess
// intrusive
#include "boost/io_fwd.hpp"
#include "boost/iterator_adaptors.hpp"
#include "boost/json.hpp"
// lambda
#include "boost/lambda2.hpp"
#include "boost/leaf.hpp"
#include "boost/lexical_cast.hpp"
#include "boost/locale.hpp"
#include "boost/local_function.hpp"
// lockfree
// log
// logic
#include "boost/math_fwd.hpp"
#include "boost/mem_fn.hpp"
#include "boost/metaparse.hpp"
// move
#include "boost/mp11.hpp"
#include "boost/mpi/skeleton_and_content_fwd.hpp"
// mpl
#include "boost/mqtt5.hpp"
// msm
// multiprecision
#include "boost/multi_array.hpp"
#include "boost/multi_index_container.hpp"
#include "boost/mysql.hpp"
// nowide
// numeric/*
#include "boost/openmethod.hpp"
#include "boost/optional.hpp"
#include "boost/outcome.hpp"
#include "boost/parameter.hpp"
// parameter_python
// parser
#include "boost/pfr.hpp"
#include "boost/phoenix.hpp"
// polygon
// poly_collection
// pool
#include "boost/predef.h"
#include "boost/preprocessor.hpp"
#include "boost/process.hpp"
#include "boost/program_options.hpp"
// property_map
// property_map_parallel
// property_tree
// proto
// ptr_container
#include "boost/python.hpp"
#include "boost/qvm.hpp"
#include "boost/random.hpp"
#include "boost/range.hpp"
#include "boost/ratio.hpp"
#include "boost/rational.hpp"
#include "boost/redis.hpp"
#include "boost/ref.hpp"
#include "boost/regex.hpp"
// safe_numerics
// scope
#include "boost/scope_exit.hpp"
// serialization
#include "boost/signals2.hpp"
#include "boost/smart_ptr.hpp"
// sort
#include "boost/spirit/include/classic.hpp"
#include "boost/stacktrace.hpp"
// statechart
#include "boost/static_assert.hpp"
#include "boost/static_string.hpp"
// stl_interfaces
#include "boost/system.hpp"
// test
#include "boost/thread.hpp"
#include "boost/throw_exception.hpp"
#include "boost/timer/timer.hpp"
#include "boost/tokenizer.hpp"
// tti
// tuple
// typeof
// type_erasure
#include "boost/type_index.hpp"
#include "boost/type_traits.hpp"
// units
#include "boost/unordered_map.hpp"
#include "boost/unordered_set.hpp"
#include "boost/url.hpp"
#include "boost/utility.hpp"
#include "boost/uuid.hpp"
#include "boost/variant.hpp"
#include "boost/variant2.hpp"
#include "boost/version.hpp"
// vmd
#include "boost/wave.hpp"
// winapi
// xpressive
// yap