Skip to content

Commit deee57b

Browse files
author
Adrien Béraud
committed
ci/github: call ctest directly
1 parent 95f0b27 commit deee57b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ccpp.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
run: cd build && make
109109

110110
- name: Run Unit tests
111-
run: cd build && ./opendht_unit_tests
111+
run: ctest --output-on-failure --test-dir build
112112

113113
build-debian12:
114114
name: Debian 12/GCC build
@@ -135,13 +135,13 @@ jobs:
135135
mkdir llhttp
136136
wget "https://github.com/nodejs/llhttp/archive/refs/tags/release/${LLHTTP_VERSION}.tar.gz" -O llhttp.tar.gz
137137
tar -xzf llhttp.tar.gz -C llhttp --strip-components=1
138-
cd llhttp && cmake -DCMAKE_INSTALL_PREFIX=/usr . && make -j2 && sudo make install
138+
cd llhttp && cmake -DCMAKE_INSTALL_PREFIX=/usr . && make -j2 && make install
139139
cd ../ && rm -rf llhttp*
140140
141141
- name: Install expected-lite header
142142
run: |
143-
sudo mkdir -p /usr/local/include/nonstd
144-
sudo wget "${EXPECTED_LITE_URL}" -O /usr/local/include/nonstd/expected.hpp
143+
mkdir -p /usr/local/include/nonstd
144+
wget "${EXPECTED_LITE_URL}" -O /usr/local/include/nonstd/expected.hpp
145145
146146
- name: Build restinio dependency
147147
run: |
@@ -154,7 +154,7 @@ jobs:
154154
-DRESTINIO_WITH_SOBJECTIZER=Off \
155155
-DRESTINIO_DEP_STANDALONE_ASIO=system -DRESTINIO_DEP_LLHTTP=system \
156156
-DRESTINIO_DEP_FMT=system -DRESTINIO_DEP_EXPECTED_LITE=system .
157-
sudo make install
157+
make install
158158
cd ../../ && rm -rf restinio*
159159
160160
- name: Build

0 commit comments

Comments
 (0)