mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -70,18 +70,10 @@ jobs:
|
||||
path: ${{ github.workspace }}/clio_tests
|
||||
|
||||
build_dev:
|
||||
name: ${{ matrix.os.name }} test
|
||||
name: Build on Mac/Clang14 and run tests
|
||||
needs: lint
|
||||
continue-on-error: ${{ matrix.os.experimental }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- name: macos-11
|
||||
experimental: true
|
||||
- name: macos-12
|
||||
experimental: false
|
||||
runs-on: ${{ matrix.os.name }}
|
||||
continue-on-error: false
|
||||
runs-on: macos-12
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -103,25 +95,22 @@ jobs:
|
||||
mv boost_1_77_0 boost
|
||||
cd boost
|
||||
./bootstrap.sh
|
||||
if [[ ${{ matrix.os.name }} =~ mac ]];then
|
||||
mac_flags='cxxflags="-std=c++14"'
|
||||
fi
|
||||
./b2 ${mac_flags}
|
||||
./b2 cxxflags="-std=c++14"
|
||||
- name: install deps
|
||||
run: |
|
||||
if [[ ${{ matrix.os.name }} =~ mac ]];then
|
||||
brew install pkg-config protobuf openssl ninja cassandra-cpp-driver bison
|
||||
elif [[ ${{matrix.os.name }} =~ ubuntu ]];then
|
||||
sudo apt-get -y install git pkg-config protobuf-compiler libprotobuf-dev libssl-dev wget build-essential doxygen bison flex autoconf clang-format
|
||||
fi
|
||||
- name: Build clio
|
||||
run: |
|
||||
export BOOST_ROOT=$(pwd)/boost
|
||||
cd clio
|
||||
cmake -B build
|
||||
if ! cmake --build build -j$(nproc); then
|
||||
echo '# 🔥${{ matrix.os.name }}🔥 failed!💥' >> $GITHUB_STEP_SUMMARY
|
||||
echo '# 🔥🔥 MacOS AppleClang build failed!💥' >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
- name: Run Test
|
||||
run: |
|
||||
cd clio/build
|
||||
./clio_tests --gtest_filter="-Backend*"
|
||||
|
||||
test_clio:
|
||||
name: Test Clio
|
||||
|
||||
Reference in New Issue
Block a user