update(llama.cpp): with Llama v3.1 model support #958
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CMake | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: ubuntu-latest | |
cmake_build_type: RelOnHost | |
- platform: macos-latest | |
cmake_build_type: RelOnHost | |
- platform: windows-latest | |
cmake_build_type: Release | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: > | |
cmake | |
-DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} | |
-S "${{github.workspace}}" -B "${{runner.workspace}}/bld" | |
- name: Build | |
run: > | |
cmake | |
--build "${{runner.workspace}}/bld" | |
--config ${{matrix.cmake_build_type}} | |
- name: Test | |
working-directory: ${{runner.workspace}}/bld | |
run: > | |
ctest | |
--timeout 10 | |
-C ${{matrix.cmake_build_type}} | |
coverage: | |
runs-on: ubuntu-latest | |
env: | |
cmake_build_type: Debug | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: > | |
cmake | |
-DCMAKE_BUILD_TYPE=${{env.cmake_build_type}} | |
-DCMAKE_C_FLAGS="--coverage -Og" | |
-DCMAKE_CXX_FLAGS="--coverage -Og" | |
-DCMAKE_EXE_LINKER_FLAGS="--coverage -Og" | |
-S "${{github.workspace}}" -B "${{runner.workspace}}/bld" | |
- name: Build | |
run: > | |
cmake | |
--build "${{runner.workspace}}/bld" | |
--config ${{env.cmake_build_type}} | |
- name: Test | |
working-directory: ${{runner.workspace}}/bld | |
run: > | |
ctest | |
--timeout 10 | |
-C ${{env.cmake_build_type}} | |
- name: LCOV | |
uses: imciner2/run-lcov@v1 | |
with: | |
input_directory: "${{runner.workspace}}/bld/" | |
exclude: '"/usr/*" "${{runner.workspace}}/bld/_deps/*"' | |
output_file: "${{runner.workspace}}/bld/coverage_report.info" | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: "${{runner.workspace}}/bld/coverage_report.info" | |