Skip to content

Commit

Permalink
Fix the CI build error by downloading the tbb binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
nudles committed Jul 11, 2021
1 parent f76b2ae commit 03a1ba3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 03a1ba3

Please sign in to comment.