Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
970e71d2
Commit
970e71d2
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
ci/github: add meson build
parent
b6552ec3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ccpp.yml
+34
-22
34 additions, 22 deletions
.github/workflows/ccpp.yml
with
34 additions
and
22 deletions
.github/workflows/ccpp.yml
+
34
−
22
View file @
970e71d2
...
...
@@ -4,55 +4,67 @@ on: [push, pull_request]
jobs
:
build-ubuntu
:
name
:
Ubuntu/GCC build
name
:
Ubuntu/GCC
autotools
build
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
d
eps
-
name
:
D
ep
endencie
s
run
:
|
sudo apt install libncurses5-dev libreadline-dev nettle-dev \
sudo apt install libncurses5-dev libreadline-dev nettle-dev
libasio-dev
\
libgnutls28-dev libuv1-dev cython3 python3-dev python3-setuptools libcppunit-dev libjsoncpp-dev \
autotools-dev autoconf libfmt-dev libhttp-parser-dev libmsgpack-dev libargon2-0-dev
-
name
:
autogen
run
:
./autogen.sh
-
name
:
asio
-
name
:
Configure
run
:
|
wget https://github.com/aberaud/asio/archive/b2b7a1c166390459e1c169c8ae9ef3234b361e3f.tar.gz \
&& tar -xvf b2b7a1c166390459e1c169c8ae9ef3234b361e3f.tar.gz && cd asio-b2b7a1c166390459e1c169c8ae9ef3234b361e3f/asio \
&& ./autogen.sh && ./configure --prefix=/usr --without-boost --disable-examples --disable-tests \
&& sudo make install \
&& cd ../../ && rm -rf asio*
-
name
:
configure
run
:
./configure
-
name
:
make
./autogen.sh
./configure
-
name
:
Build
run
:
make
-
name
:
Unit tests
run
:
./opendht_unit_tests
build-ubuntu
:
name
:
Ubuntu/GCC Meson build
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Dependencies
run
:
|
sudo apt install meson ninja-build libncurses5-dev libreadline-dev nettle-dev libasio-dev \
libgnutls28-dev libuv1-dev cython3 python3-dev python3-setuptools libcppunit-dev libjsoncpp-dev \
libfmt-dev libhttp-parser-dev libmsgpack-dev libargon2-0-dev
-
name
:
Configure
run
:
meson setup build .
-
name
:
Build
run
:
make
-
name
:
make check
run
:
make check
-
name
:
Unit tests
run
:
./opendht_unit_tests
build-ubuntu-minimal
:
name
:
Ubuntu/GCC minimal build
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
d
eps
-
name
:
D
ep
endencie
s
run
:
|
sudo apt install libncurses5-dev libreadline-dev nettle-dev \
libgnutls28-dev libcppunit-dev libmsgpack-dev libargon2-0-dev
-
name
:
cmak
e
-
name
:
Configur
e
run
:
|
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug \
-DOPENDHT_C=Off -DOPENDHT_TESTS=On -DOPENDHT_PEER_DISCOVERY=Off -DOPENDHT_PYTHON=Off \
-DOPENDHT_TOOLS=On -DOPENDHT_PROXY_SERVER=Off -DOPENDHT_PROXY_CLIENT=Off
-
name
:
make
-
name
:
Build
run
:
cd build && make
-
name
:
Unit tests
run
:
cd build && ./opendht_unit_tests
build-macos
:
name
:
macOS/Clang build
runs-on
:
macos-11
steps
:
-
uses
:
actions/checkout@v3
-
name
:
d
eps
-
name
:
D
ep
endencie
s
run
:
|
brew install msgpack-cxx asio gnutls nettle readline fmt jsoncpp argon2 openssl http-parser cppunit
...
...
@@ -68,7 +80,7 @@ jobs:
make -j8 && sudo make install
cd ../../.. && rm -rf restinio
-
name
:
cmak
e
-
name
:
Configur
e
run
:
|
mkdir build && cd build
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"
...
...
@@ -79,6 +91,6 @@ jobs:
-DOPENDHT_C=On -DOPENDHT_TESTS=On -DOPENDHT_PEER_DISCOVERY=On -DOPENDHT_PYTHON=Off \
-DOPENDHT_TOOLS=On -DOPENDHT_PROXY_SERVER=On -DOPENDHT_PROXY_CLIENT=On -DOPENDHT_PUSH_NOTIFICATIONS=On
-
name
:
make
-
name
:
Build
run
:
cd build && make
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment