Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

Build benches in ci (#329)

uuuvn11f13a81407f
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 1afc64ba3..448bb474b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -79,6 +79,14 @@ jobs:
${{ matrix.tracing && '--features tracing' || '' }} \
${{ matrix.audio && '--features audio-runtime' || '' }}
+ - name: Build benches
+ if: ${{ matrix.backend != 'cpu' && matrix.tracing && matrix.audio }}
+ run: |
+ cargo +nightly bench --no-run --no-default-features \
+ ${{ matrix.backend != 'cpu' && format('--features {0}', matrix.backend) || '' }} \
+ ${{ matrix.tracing && '--features tracing' || '' }} \
+ ${{ matrix.audio && '--features audio-runtime' || '' }}
+
- name: Run tests
if: ${{ matrix.backend != 'cpu' && matrix.tracing && matrix.audio }}
run: |