LocalAI/.github/workflows/test.yml

44 lines
845 B
YAML
Raw Normal View History

---
name: 'tests'
on:
pull_request:
push:
branches:
- master
tags:
- '*'
concurrency:
group: ci-tests-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
jobs:
ubuntu-latest:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
with:
submodules: true
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential ffmpeg
- name: Test
run: |
make test
2023-04-22 09:05:23 +00:00
macOS-latest:
runs-on: macOS-latest
2023-04-22 09:05:23 +00:00
steps:
- name: Clone
uses: actions/checkout@v3
2023-04-22 09:05:23 +00:00
with:
submodules: true
2023-04-22 09:05:23 +00:00
- name: Test
run: |
CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF" make test