aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2025-03-09 11:29:04 -0700
committerJack O'Connor <[email protected]>2025-03-13 12:16:50 -0700
commit057586a15f1618c6c049c70075d725f8ed81d627 (patch)
tree39ff413e3247de2c216a047beaebfd1746c1c64e /.github/workflows/ci.yml
parent4a885fcaeeb4c79414f9b0433ab417faaacf3066 (diff)
tbb support in blake3_c_rust_bindings
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2fc5e94..f184ab4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -399,3 +399,28 @@ jobs:
# we might add more. If this accidentally picks up anything incompatible or
# slow, we can narrow it.
- run: cargo miri test miri
+
+ tbb_rust_bindings_tests:
+ name: TBB test bindings ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: ["ubuntu-latest", "macOS-latest"]
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/rust-toolchain@stable
+ - name: install TBB
+ if: matrix.os == 'ubuntu-latest'
+ run: |
+ sudo apt-get update
+ sudo apt-get install libtbb-dev libtbb12
+ - name: install TBB
+ if: matrix.os == 'macOS-latest'
+ run: |
+ brew install tbb
+ echo "CXXFLAGS=-I$(brew --prefix)/include $CPPFLAGS" >> $GITHUB_ENV
+ echo "RUSTFLAGS=-L$(brew --prefix)/lib $RUSTFLAGS" >> $GITHUB_ENV
+ - name: cargo test C bindings with TBB
+ run: cargo test --features=tbb
+ working-directory: ./c/blake3_c_rust_bindings