-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Update libuv version 2. Install openssl 1.1 Gloo is currently pinned to openssl 1.1. See: gloo/test/CMakeLists.txt It has: find_package(OpenSSL 1.1 REQUIRED EXACT) 3. Build with c++17 to resolve libuv errors. 4. Always install libssl-dev 5. Add LD_LIBRARY_PATH for runners 6. SSL max limit is 512M - 1 Also, make a small change to one of the tests. SSL max limit is 512M - 1 byte broadcast test fails at 512M, passes with 1 less byte. TODO: comment where this limit is coming from.
- Loading branch information
Showing
4 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: CI-Linux | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-linux: | ||
name: build on ubuntu | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
cmake_args: ["", "-DUSE_IBVERBS=ON -DUSE_LIBUV=ON -DUSE_TCP_OPENSSL_LINK=ON", "-DUSE_TCP_OPENSSL_LOAD=ON"] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup environment | ||
run: | | ||
sudo apt-get install -y libssl-dev | ||
- name: Install apt packages | ||
run: | | ||
sudo apt-get install -y wget perl build-essential cmake libibverbs-dev libssl-dev | ||
- name: Install openssl # TODO: upgrade to latest | ||
run: | | ||
sudo wget -q https://www.openssl.org/source/openssl-1.1.1b.tar.gz | ||
sudo tar -xzf openssl-1.1.1b.tar.gz | ||
cd openssl-1.1.1b | ||
sudo ./config --prefix=/opt/openssl --openssldir=/opt/openssl/ssl | ||
sudo make -j 2 | ||
sudo make install | ||
- name: Install libuv | ||
run: | | ||
sudo apt-get install -y wget pkg-config | ||
wget -q -O libuv-v1.49.2.tar.gz https://dist.libuv.org/dist/v1.49.2/libuv-v1.49.2.tar.gz | ||
tar xf libuv-v1.49.2.tar.gz | ||
cd libuv-v1.49.2 | ||
mkdir -p build | ||
cd build | ||
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local | ||
sudo make install | ||
- name: Install googletest | ||
run: | | ||
wget -q -O googletest-release-1.15.2.tar.gz https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz | ||
tar xf googletest-release-1.15.2.tar.gz | ||
cd googletest-1.15.2 | ||
mkdir -p build | ||
cd build | ||
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local | ||
sudo make install | ||
- name: Build | ||
run: | | ||
sudo add-apt-repository universe | ||
sudo apt-get update | ||
sudo apt install build-essential | ||
sudo apt-get install -y gcc g++ | ||
# export CC=gcc-${{ matrix.gcc-version }} | ||
# export CXX=g++-${{ matrix.gcc-version }} | ||
mkdir -p build | ||
cd build | ||
cmake ../ -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_TEST=ON ${{matrix.cmake_args}} -DOPENSSL_ROOT_DIR=/opt/openssl/ | ||
make | ||
- name: Test | ||
run: | | ||
LD_LIBRARY_PATH=/opt/openssl:/opt/openssl/lib:$LD_LIBRARY_PATH ./build/gloo/test/gloo_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters