File tree 1 file changed +40
-1
lines changed
1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ name: C/C++ CI
3
3
on : [push]
4
4
5
5
jobs :
6
- build :
6
+ build-ubuntu :
7
+ name : Ubuntu/GCC build
7
8
runs-on : ubuntu-latest
8
9
steps :
9
10
- uses : actions/checkout@v3
27
28
run : make
28
29
- name : make check
29
30
run : make check
31
+
32
+ build-macos :
33
+ name : macOS/Clang build
34
+ runs-on : macos-11
35
+ steps :
36
+ - uses : actions/checkout@v3
37
+ - name : deps
38
+ run : |
39
+ brew install msgpack-cxx asio gnutls nettle readline fmt jsoncpp argon2 openssl http-parser cppunit
40
+
41
+ - name : restinio
42
+ run : |
43
+ mkdir restinio && cd restinio
44
+ wget https://github.com/aberaud/restinio/archive/e0a261dd8488246a3cb8bbb3ea781ea5139c3c94.tar.gz
45
+ ls -l && tar -xzf e0a261dd8488246a3cb8bbb3ea781ea5139c3c94.tar.gz
46
+ cd restinio-e0a261dd8488246a3cb8bbb3ea781ea5139c3c94/dev
47
+ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DRESTINIO_TEST=OFF -DRESTINIO_SAMPLE=OFF \
48
+ -DRESTINIO_INSTALL_SAMPLES=OFF -DRESTINIO_BENCH=OFF -DRESTINIO_INSTALL_BENCHES=OFF \
49
+ -DRESTINIO_FIND_DEPS=ON -DRESTINIO_ALLOW_SOBJECTIZER=Off -DRESTINIO_USE_BOOST_ASIO=none .
50
+ make -j8 && sudo make install
51
+ cd ../../.. && rm -rf restinio
52
+
53
+ - name : cmake
54
+ run : |
55
+ mkdir build && cd build
56
+ export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"
57
+ export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
58
+ export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
59
+ export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
60
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug \
61
+ -DOPENDHT_C=On -DOPENDHT_TESTS=On -DOPENDHT_PEER_DISCOVERY=On -DOPENDHT_PYTHON=Off \
62
+ -DOPENDHT_TOOLS=On -DOPENDHT_PROXY_SERVER=On -DOPENDHT_PROXY_CLIENT=On
63
+
64
+ - name : make
65
+ run : cd build && make
66
+
67
+ - name : make check
68
+ run : cd build && ./opendht_unit_tests
You can’t perform that action at this time.
0 commit comments