Skip to content

Commit 068977a

Browse files
Adds Boost to ci (#1071)
* adds boost to the matrix, only run in ubuntu-latest
1 parent 59422fb commit 068977a

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,28 @@ jobs:
2525
ubuntu-22.04,
2626
macos-13
2727
]
28+
include:
29+
- os: ubuntu-latest
30+
asio_type: boost
2831
steps:
2932
- uses: actions/checkout@v4
3033
- name: Prepare dependencies
3134
run: |
3235
if [ "$RUNNER_OS" == "Linux" ]; then
33-
sudo apt-get update && \
34-
sudo apt-get install -yq \
35-
libasio-dev \
36-
libssl-dev zlib1g-dev \
37-
cmake \
38-
g++ clang
36+
sudo apt-get update
37+
if [ "${{ matrix.asio_type || 'standalone' }}" == "boost" ]; then
38+
sudo apt-get install -yq \
39+
libboost-all-dev \
40+
libssl-dev zlib1g-dev \
41+
cmake \
42+
g++ clang
43+
else
44+
sudo apt-get install -yq \
45+
libasio-dev \
46+
libssl-dev zlib1g-dev \
47+
cmake \
48+
g++ clang
49+
fi
3950
elif [ "$RUNNER_OS" == "Windows" ]; then
4051
VCPKG_DEFAULT_TRIPLET=x64-windows vcpkg install
4152
elif [ "$RUNNER_OS" == "macOS" ]; then
@@ -66,6 +77,12 @@ jobs:
6677
else
6778
cmake_flags="-DCMAKE_CXX_COMPILER=g++"
6879
fi
80+
81+
if [ "${{ matrix.asio_type || 'standalone' }}" == "boost" ]; then
82+
cmake_flags="${cmake_flags} -DCROW_USE_BOOST=ON"
83+
else
84+
cmake_flags="${cmake_flags} -DCROW_USE_BOOST=OFF"
85+
fi
6986
fi
7087
7188
cmake \
@@ -115,10 +132,10 @@ jobs:
115132

116133
- uses: actions/upload-artifact@v4
117134
if: matrix.os == 'ubuntu-latest'
118-
with:
135+
with:
119136
name: packages
120137
path: ${{github.workspace}}/build/Crow-*
121-
138+
122139
#- name: Source package
123140
# working-directory: ${{github.workspace}}/build
124141
# run: cpack --config CPackSourceConfig.cmake

0 commit comments

Comments
 (0)