Skip to content

Commit bb8ec30

Browse files
committed
ci(sync): fix local config coverage dependencies
2 parents a99f270 + 4b252d8 commit bb8ec30

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/sync-strict-ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,26 @@ jobs:
463463
sudo apt-get install -y $DEPS
464464
test -f /usr/include/asio.hpp || (echo "::error::System Asio header not found after install"; exit 1)
465465
466+
- name: Fetch sibling dependencies
467+
run: |
468+
rm -rf ../utils ../net ../json
469+
470+
git clone --depth 1 --branch "${VIX_GIT_BRANCH}" https://github.com/vixcpp/utils.git ../utils
471+
git clone --depth 1 --branch "${VIX_GIT_BRANCH}" https://github.com/vixcpp/net.git ../net
472+
git clone --depth 1 --branch "${VIX_GIT_BRANCH}" https://github.com/vixcpp/json.git ../json
473+
474+
- name: Verify required sibling dependencies
475+
run: |
476+
test -f ../utils/CMakeLists.txt || (echo "::error::../utils/CMakeLists.txt is missing"; exit 1)
477+
test -f ../net/CMakeLists.txt || (echo "::error::../net/CMakeLists.txt is missing"; exit 1)
478+
test -f ../json/CMakeLists.txt || (echo "::error::../json/CMakeLists.txt is missing"; exit 1)
479+
test -f ../json/include/vix/json/Simple.hpp || (echo "::error::../json/include/vix/json/Simple.hpp is missing"; exit 1)
480+
481+
- name: Export dependency include paths
482+
run: |
483+
echo "CPATH=$GITHUB_WORKSPACE/../json/include:$GITHUB_WORKSPACE/../utils/include:$GITHUB_WORKSPACE/../net/include${CPATH:+:$CPATH}" >> "$GITHUB_ENV"
484+
echo "CPLUS_INCLUDE_PATH=$GITHUB_WORKSPACE/../json/include:$GITHUB_WORKSPACE/../utils/include:$GITHUB_WORKSPACE/../net/include${CPLUS_INCLUDE_PATH:+:$CPLUS_INCLUDE_PATH}" >> "$GITHUB_ENV"
485+
466486
- name: Configure release mode with sibling deps
467487
run: |
468488
cmake -G Ninja -S . -B build-release-local \

0 commit comments

Comments
 (0)