Enable OS-independent features, build and run example.

This commit is contained in:
arizhih 2024-10-14 14:58:58 +02:00
parent 21f236d1da
commit e983a6a033

View file

@ -30,8 +30,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ ubuntu-latest, windows-latest, macos-latest ]
rust-version: [stable, nightly] rust-version: [ stable, nightly ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Check out code into the proper directory - name: Check out code into the proper directory
@ -55,8 +55,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ ubuntu-latest, windows-latest, macos-latest ]
rust-version: [stable, nightly] rust-version: [ stable, nightly ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Check out code into the proper directory - name: Check out code into the proper directory
@ -73,4 +73,4 @@ jobs:
toolchain: ${{ matrix.rust-version }} toolchain: ${{ matrix.rust-version }}
- name: Check build - name: Check build
run: cargo build --verbose run: cargo build -F whisper-cpp-log,whisper-cpp-tracing --verbose && cargo run --example basic_use -F whisper-cpp-log,whisper-cpp-tracing