Run test on mac (#490)

Fixes #490
This commit is contained in:
cyan317
2023-01-31 17:22:28 +00:00
committed by GitHub
parent 992d5a7a70
commit fe5150dba4

View File

@@ -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