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
|
path: ${{ github.workspace }}/clio_tests
|
||||||
|
|
||||||
build_dev:
|
build_dev:
|
||||||
name: ${{ matrix.os.name }} test
|
name: Build on Mac/Clang14 and run tests
|
||||||
needs: lint
|
needs: lint
|
||||||
continue-on-error: ${{ matrix.os.experimental }}
|
continue-on-error: false
|
||||||
strategy:
|
runs-on: macos-12
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- name: macos-11
|
|
||||||
experimental: true
|
|
||||||
- name: macos-12
|
|
||||||
experimental: false
|
|
||||||
runs-on: ${{ matrix.os.name }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -103,25 +95,22 @@ jobs:
|
|||||||
mv boost_1_77_0 boost
|
mv boost_1_77_0 boost
|
||||||
cd boost
|
cd boost
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
if [[ ${{ matrix.os.name }} =~ mac ]];then
|
./b2 cxxflags="-std=c++14"
|
||||||
mac_flags='cxxflags="-std=c++14"'
|
|
||||||
fi
|
|
||||||
./b2 ${mac_flags}
|
|
||||||
- name: install deps
|
- name: install deps
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ matrix.os.name }} =~ mac ]];then
|
|
||||||
brew install pkg-config protobuf openssl ninja cassandra-cpp-driver bison
|
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
|
- name: Build clio
|
||||||
run: |
|
run: |
|
||||||
export BOOST_ROOT=$(pwd)/boost
|
export BOOST_ROOT=$(pwd)/boost
|
||||||
cd clio
|
cd clio
|
||||||
cmake -B build
|
cmake -B build
|
||||||
if ! cmake --build build -j$(nproc); then
|
if ! cmake --build build -j$(nproc); then
|
||||||
echo '# 🔥${{ matrix.os.name }}🔥 failed!💥' >> $GITHUB_STEP_SUMMARY
|
echo '# 🔥🔥 MacOS AppleClang build failed!💥' >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
- name: Run Test
|
||||||
|
run: |
|
||||||
|
cd clio/build
|
||||||
|
./clio_tests --gtest_filter="-Backend*"
|
||||||
|
|
||||||
test_clio:
|
test_clio:
|
||||||
name: Test Clio
|
name: Test Clio
|
||||||
|
|||||||
Reference in New Issue
Block a user