Skip to content

Commit 23f04b9

Browse files
authored
Merge pull request #1173 from cppalliance/dec_ci
2 parents a4f0501 + 2d8886f commit 23f04b9

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,64 @@ jobs:
728728
cd ../boost-root/__build__
729729
ctest --output-on-failure --no-tests=error
730730
731+
posix-cmake-test-dectest:
732+
strategy:
733+
fail-fast: false
734+
matrix:
735+
include:
736+
- os: ubuntu-24.04
737+
- os: macos-14
738+
- os: macos-15
739+
740+
runs-on: ${{matrix.os}}
741+
742+
steps:
743+
- uses: actions/checkout@v4
744+
745+
- name: Install packages
746+
if: matrix.install
747+
run: sudo apt install ${{matrix.install}}
748+
749+
- name: Setup Boost
750+
run: |
751+
echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY
752+
LIBRARY=${GITHUB_REPOSITORY#*/}
753+
echo LIBRARY: $LIBRARY
754+
echo "LIBRARY=$LIBRARY" >> $GITHUB_ENV
755+
echo GITHUB_BASE_REF: $GITHUB_BASE_REF
756+
echo GITHUB_REF: $GITHUB_REF
757+
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
758+
REF=${REF#refs/heads/}
759+
echo REF: $REF
760+
BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
761+
echo BOOST_BRANCH: $BOOST_BRANCH
762+
cd ..
763+
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
764+
cd boost-root
765+
mkdir -p libs/$LIBRARY
766+
cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY
767+
cd libs/$LIBRARY/test
768+
git clone https://github.com/cppalliance/decimal-dectest
769+
cd ../../../
770+
git submodule update --init tools/boostdep
771+
python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" $LIBRARY
772+
773+
- name: Configure
774+
run: |
775+
cd ../boost-root
776+
mkdir __build__ && cd __build__
777+
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DBUILD_DECTEST_TESTING=ON ..
778+
779+
- name: Build tests
780+
run: |
781+
cd ../boost-root/__build__
782+
cmake --build . --target tests
783+
784+
- name: Run tests
785+
run: |
786+
cd ../boost-root/__build__
787+
ctest --output-on-failure --no-tests=error
788+
731789
posix-standalone-test:
732790
strategy:
733791
fail-fast: false

0 commit comments

Comments
 (0)