diff options
| author | Jack O'Connor <[email protected]> | 2025-03-09 11:29:04 -0700 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2025-03-11 13:03:59 -0700 |
| commit | 97ce1c8c47940357f82b6dfa56cdd55d5f8ec1d4 (patch) | |
| tree | 2ddbc2f37bf8933a8b79a6a8518ac34df61d0151 /.github/workflows/ci.yml | |
| parent | d9b49df0757f8bdfaa542e7181013fbf1555ff89 (diff) | |
tbb support in blake3_c_rust_bindingsrust_bindings_tbb
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bb3aaf..51faeb1 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 |
