Skip to content

Commit a243315

Browse files
committed
Add posix-check-installed-files to ci.yml
1 parent d47830e commit a243315

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,3 +689,39 @@ jobs:
689689
cmake --build . --config Release && cmake --build . --config Release --target check
690690
cmake --build . --config MinSizeRel && cmake --build . --config MinSizeRel --target check
691691
cmake --build . --config RelWithDebInfo && cmake --build . --config RelWithDebInfo --target check
692+
693+
posix-check-installed-files:
694+
695+
runs-on: ubuntu-latest
696+
697+
steps:
698+
- uses: actions/checkout@v6
699+
700+
- name: Install Boost
701+
run: |
702+
echo GITHUB_BASE_REF: $GITHUB_BASE_REF
703+
echo GITHUB_REF: $GITHUB_REF
704+
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
705+
REF=${REF#refs/heads/}
706+
echo REF: $REF
707+
BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
708+
echo BOOST_BRANCH: $BOOST_BRANCH
709+
cd ..
710+
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
711+
cd boost-root
712+
git submodule update --init --jobs 3
713+
rm -rf tools/boost_install/*
714+
cp -r $GITHUB_WORKSPACE/* tools/boost_install
715+
./bootstrap.sh
716+
./b2 -j3 --prefix=$HOME/.local --with-headers install
717+
718+
- name: Check installed files
719+
run: |
720+
test -f ~/.local/share/boost_predef/build.jam
721+
test -f ~/.local/lib/cmake/BoostDetectToolset-1.92.0.cmake
722+
test -f ~/.local/lib/cmake/Boost-*/BoostConfig.cmake
723+
test -f ~/.local/lib/cmake/Boost-*/BoostConfigVersion.cmake
724+
test -f ~/.local/lib/cmake/boost_headers-*/boost_headers-config.cmake
725+
test -f ~/.local/lib/cmake/boost_headers-*/boost_headers-config-version.cmake
726+
test -f ~/.local/lib/cmake/boost_system-*/boost_system-config.cmake
727+
test -f ~/.local/lib/cmake/boost_system-*/boost_system-config-version.cmake

0 commit comments

Comments
 (0)