name: Test the package
on:
push:
branches:
pull_request:
branches:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
uses: GregorLueg/personal-actions/.github/workflows/rust-test.yml@v1
with:
# `gpu` here is compile coverage plus the host-side unit tests. The tests
# that need an adapter sit behind `gpu-tests`, so the CPU lanes, which
# have none, never try to open one.
cpu-args: '--release --features gpu'
# Windows drops gpu, as in ann-search-rs.
windows-cpu-args: '--release'
# Linux is lavapipe, macOS the runner's Metal: two plane widths.
gpu-args: '--release --features gpu-tests'
secrets: inherit