Skip to content

Update README.md

Update README.md #13

Workflow file for this run

name: CI
on: [push, pull_request]
env:
build_type: ${{ contains(github.event.head_commit.message, '[debug]') && 'Debug' || 'Release' }}
jobs:
ClangFormat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check format
uses: jidicula/[email protected]
with:
clang-format-version: '18'
check-path: '.'
Ubuntu:
runs-on: ubuntu-latest
needs: ClangFormat
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/build/source
key: ${{ runner.os }}-${{ hashFiles('*/build/source/wvp_model.cpp') }}
restore-keys: ${{ runner.os }}-
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Configure
run: cmake -B ${{ github.workspace }}/build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.build_type }} -DIVE_PLUGIN_EXAMPLE=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build
- name: Test
run: ctest -C ${{ env.build_type }} -VV --test-dir ${{ github.workspace }}/build
- name: Artifact
uses: actions/[email protected]
with:
name: Whisper-Linux
path: ${{ github.workspace }}/package/
Windows:
runs-on: windows-latest
needs: ClangFormat
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/build/source
key: ${{ runner.os }}-${{ hashFiles('*/build/source/wvp_model.cpp') }}
restore-keys: ${{ runner.os }}-
- name: Configure
run: cmake -B ${{ github.workspace }}/build -G "Visual Studio 17 2022" -A x64 -DIVE_PLUGIN_EXAMPLE=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.build_type }}
- name: Test
run: ctest -C ${{ env.build_type }} -VV --test-dir ${{ github.workspace }}/build
- name: Artifact
uses: actions/[email protected]
with:
name: Whisper-Windows
path: ${{ github.workspace }}/package/Whisper-install.exe
MacOS:
runs-on: macos-latest
needs: ClangFormat
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/build/source
key: ${{ runner.os }}-${{ hashFiles('*/build/source/wvp_model.cpp') }}
restore-keys: ${{ runner.os }}-
- name: Configure
run: cmake -B ${{ github.workspace }}/build -G "Xcode" -DIVE_PLUGIN_EXAMPLE=ON
- name: Build
run: set -o pipefail && cmake --build ${{ github.workspace }}/build --config ${{ env.build_type }} | xcbeautify --renderer github-actions
- name: Test
run: ctest -C ${{ env.build_type }} -VV --test-dir ${{ github.workspace }}/build
- name: Artifact
uses: actions/[email protected]
with:
name: Whisper-MacOS
path: ${{ github.workspace }}/package/Whisper.pkg