Skip to content

Commit

Permalink
chore: CI runs tests with OpenBLAS on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jkawamoto committed Oct 14, 2024
1 parent 765a7e2 commit 4d0b986
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
- main
pull_request:

concurrency:
group: check-build-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

Expand Down Expand Up @@ -90,11 +86,21 @@ jobs:
strategy:
fail-fast: false
matrix:
backend: [ruy]
backend: [openblas, ruy]
feature: ["", "flash-attention"]
runs-on: windows-latest

steps:
- uses: actions/cache@v4
with:
path: ${{ env.VCPKG_INSTALLATION_ROOT }}/installed
key: cache-vcpkg-packages
- name: Install OpenBLAS
if: ${{ matrix.backend == 'openblas' }}
run: |
vcpkg install openblas:x64-windows-static
Remove-Item -Recurse -Force "$env:VCPKG_INSTALLATION_ROOT/downloads"
echo "CMAKE_INCLUDE_PATH=$env:VCPKG_INSTALLATION_ROOT/installed/x64-windows-static/include/openblas;$env:CMAKE_INCLUDE_PATH" >> $env:GITHUB_ENV
echo "CMAKE_LIBRARY_PATH=$env:VCPKG_INSTALLATION_ROOT/installed/x64-windows-static/lib;$env:CMAKE_LIBRARY_PATH" >> $env:GITHUB_ENV
- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -103,4 +109,4 @@ jobs:
- name: Build
run: cargo build -vv --no-default-features -F "whisper,hub,${{ matrix.backend }},${{ matrix.feature }}"
- name: Run tests
run: cargo test -vv --no-default-features -F "whisper,hub,${{ matrix.backend }},${{ matrix.feature }}" -- --include-ignored
run: cargo test -vv --no-default-features -F "whisper,hub,${{ matrix.backend }},${{ matrix.feature }}" -- --include-ignored --test-threads=1

0 comments on commit 4d0b986

Please sign in to comment.