This is an automated email from the ASF dual-hosted git repository.
zhaojing pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/singa.git
The following commit(s) were added to refs/heads/dev by this push:
new 03a1ba3 Fix the CI build error by downloading the tbb binaries
new 4363aaf Merge pull request #867 from nudles/dev
03a1ba3 is described below
commit 03a1ba31a3efc88960273e4a803fade348cbad80
Author: fredwang <[email protected]>
AuthorDate: Sat Jul 10 09:59:50 2021 +0800
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 d38ce32..6b5fde2 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