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