2023-04-21 22:44:52 +00:00
|
|
|
---
|
|
|
|
name: 'tests'
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
2023-05-19 06:31:11 +00:00
|
|
|
concurrency:
|
|
|
|
group: ci-tests-${{ github.head_ref || github.ref }}-${{ github.repository }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-04-21 22:44:52 +00:00
|
|
|
jobs:
|
|
|
|
ubuntu-latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
2023-04-25 05:46:29 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-04-21 22:44:52 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-05-12 08:04:20 +00:00
|
|
|
sudo apt-get install build-essential ffmpeg
|
2023-07-14 23:19:43 +00:00
|
|
|
|
|
|
|
sudo apt-get install -y ca-certificates cmake curl patch
|
|
|
|
sudo apt-get install -y libopencv-dev && sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
|
2023-07-20 21:45:29 +00:00
|
|
|
sudo pip install -r extra/requirements.txt
|
2023-07-14 23:19:43 +00:00
|
|
|
|
|
|
|
sudo mkdir /build && sudo chmod -R 777 /build && cd /build && \
|
2023-07-14 23:19:43 +00:00
|
|
|
curl -L "https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz" | \
|
2023-07-14 23:19:43 +00:00
|
|
|
tar -xzvf - && \
|
2023-07-14 23:19:43 +00:00
|
|
|
mkdir -p "spdlog-1.11.0/build" && \
|
|
|
|
cd "spdlog-1.11.0/build" && \
|
2023-07-14 23:19:43 +00:00
|
|
|
cmake .. && \
|
|
|
|
make -j8 && \
|
|
|
|
sudo cmake --install . --prefix /usr && mkdir -p "lib/Linux-$(uname -m)" && \
|
|
|
|
cd /build && \
|
|
|
|
mkdir -p "lib/Linux-$(uname -m)/piper_phonemize" && \
|
2023-07-14 23:19:43 +00:00
|
|
|
curl -L "https://github.com/rhasspy/piper-phonemize/releases/download/v1.0.0/libpiper_phonemize-amd64.tar.gz" | \
|
2023-07-14 23:19:43 +00:00
|
|
|
tar -C "lib/Linux-$(uname -m)/piper_phonemize" -xzvf - && ls -liah /build/lib/Linux-$(uname -m)/piper_phonemize/ && \
|
|
|
|
sudo cp -rfv /build/lib/Linux-$(uname -m)/piper_phonemize/lib/. /lib64/ && \
|
|
|
|
sudo cp -rfv /build/lib/Linux-$(uname -m)/piper_phonemize/lib/. /usr/lib/ && \
|
|
|
|
sudo cp -rfv /build/lib/Linux-$(uname -m)/piper_phonemize/include/. /usr/include/
|
2023-04-21 22:44:52 +00:00
|
|
|
- name: Test
|
|
|
|
run: |
|
2023-07-14 23:19:43 +00:00
|
|
|
ESPEAK_DATA="/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data" GO_TAGS="tts stablediffusion" make test
|
2023-04-21 22:44:52 +00:00
|
|
|
|
2023-04-22 09:05:23 +00:00
|
|
|
macOS-latest:
|
|
|
|
runs-on: macOS-latest
|
2023-04-21 22:44:52 +00:00
|
|
|
|
2023-04-22 09:05:23 +00:00
|
|
|
steps:
|
|
|
|
- name: Clone
|
2023-04-25 05:46:29 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-04-22 09:05:23 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2023-04-21 22:44:52 +00:00
|
|
|
|
2023-04-22 09:05:23 +00:00
|
|
|
- name: Test
|
|
|
|
run: |
|
2023-06-18 06:27:29 +00:00
|
|
|
CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF" make test
|