Skip to content

Commit

Permalink
Add TBB to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Jul 14, 2024
1 parent 2820f7f commit c44817c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
env:
CMAKE_PREFIX_PATH: ${{ matrix.cmake_prefix_path }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.osx_target }}
strategy:
fail-fast: false
Expand All @@ -25,18 +26,21 @@ jobs:
- name: Linux
os: ubuntu-24.04
osx_target: ""
cmake_prefix_path: "/opt/intel/oneapi/tbb/latest"
cmake_flags: ""
cxx_flags: "-march=x86-64-v2"

- name: macOS-X64
os: macos-13
osx_target: "10.15"
cmake_prefix_path: ""
cmake_flags: '-D OpenMP_ROOT=`brew list libomp | grep libomp.a | sed -E "s/\/lib\/.*//"`'
cxx_flags: "-march=x86-64-v2"

- name: macOS-ARM64
os: macos-14
osx_target: "11.0"
cmake_prefix_path: ""
cmake_flags: '-D OpenMP_ROOT=`brew list libomp | grep libomp.a | sed -E "s/\/lib\/.*//"`'
cxx_flags: ""

Expand All @@ -59,9 +63,18 @@ jobs:
sudo apt install -y libomp-dev ninja-build
pip3 install --break-system-packages conan
- name: Install TBB (Linux)
if: runner.os == 'Linux'
shell: bash
run: |
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update -y
sudo apt install -y intel-oneapi-tbb-devel
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: brew install conan libomp llvm ninja opencv
run: brew install conan libomp llvm ninja opencv tbb

- name: Install dependencies (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit c44817c

Please sign in to comment.