Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
BUILD_DIR: "cmake-build"
BUILD_TYPE: "Debug"
CC: "gcc-11"
CXX: "g++-11"
LANG: "en_US.UTF-8"
Expand All @@ -38,19 +39,23 @@ jobs:
python3 -V

echo "==== conan ===="
pip install "conan==1.62.0"
pip install -r requirements.txt
conan --version
if [[ ! -f ~/.conan/profiles/default ]]; then conan profile new default --detect; fi
conan profile update settings.compiler.libcxx=libstdc++11 default

- name: Install Project Dependencies
run: |
conan install . --build --install-folder $BUILD_DIR --profile ./sanitized
if [[ "$BUILD_TYPE" == "Debug" ]]; then
conan install . --build --install-folder $BUILD_DIR --profile ./sanitized
else
conan install . --build=missing --install-folder $BUILD_DIR
fi

- name: Build spectator-cpp
run: |
cd $BUILD_DIR
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
cmake --build .

- name: Test spectator-cpp
Expand Down
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ if [[ ! -d $BUILD_DIR ]]; then

echo -e "${BLUE}==== install required dependencies ====${NC}"
if [[ "$BUILD_TYPE" == "Debug" ]]; then
PROFILE="--profile ./sanitized"
conan install . --build --install-folder $BUILD_DIR --profile ./sanitized
else
PROFILE=""
conan install . --build=missing --install-folder $BUILD_DIR
fi
conan install . --build=missing --install-folder $BUILD_DIR $PROFILE
fi

pushd $BUILD_DIR || exit 1
Expand Down