From 03a1ba31a3efc88960273e4a803fade348cbad80 Mon Sep 17 00:00:00 2001 From: fredwang Date: Sat, 10 Jul 2021 09:59:50 +0800 Subject: [PATCH] Fix the CI build error by downloading the tbb binaries --- .github/workflows/macOS.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macOS.yaml b/.github/workflows/macOS.yaml index d38ce32302..6b5fde2c29 100644 --- a/.github/workflows/macOS.yaml +++ b/.github/workflows/macOS.yaml @@ -33,6 +33,10 @@ jobs: - name: install-build-dependencies run: | brew install protobuf swig opencv glog lmdb numpy + wget https://github.com/oneapi-src/oneTBB/releases/download/v2020.1/tbb-2020.1-mac.tgz + mkdir /tmp/tbb + tar zxvf tbb-2020.1-mac.tgz -C /tmp/tbb --strip-components=1 + mv /tmp/tbb/lib/lib* /usr/local/lib/ pip3 install numpy && wget https://github.com/oneapi-src/oneDNN/releases/download/v1.2/dnnl_mac_1.2.0_cpu_tbb.tgz -P /tmp tar zxf /tmp/dnnl_mac_1.2.0_cpu_tbb.tgz -C /tmp - name: configure @@ -48,7 +52,6 @@ jobs: LD_LIBRARY_PATH: /usr/local/opt/openblas/lib:/tmp/dnnl_mac_1.2.0_cpu_tbb/lib:$LD_LIBRARY_PATH - name: C++ test run: | - brew install tbb install_name_tool -change libdnnl.1.dylib /tmp/dnnl_mac_1.2.0_cpu_tbb/lib/libdnnl.1.dylib /Users/runner/work/singa/singa/build/lib/libsinga.dylib install_name_tool -change libdnnl.1.dylib /tmp/dnnl_mac_1.2.0_cpu_tbb/lib/libdnnl.1.dylib build/bin/test_singa build/bin/test_singa