Test passing

This commit is contained in:
Michael Hansen
2023-09-09 21:09:06 -05:00
parent def047af9d
commit 9f3f906ea9
3 changed files with 40 additions and 42 deletions
+7 -13
View File
@@ -1,16 +1,10 @@
.PHONY: piper clean
.PHONY: clean
LIB_DIR := lib/Linux-$(shell uname -m)
VERSION := $(cat VERSION)
DOCKER_PLATFORM ?= linux/amd64,linux/arm64,linux/arm/v7
piper:
mkdir -p build
cd build && cmake ../src/cpp -DCMAKE_BUILD_TYPE=Release && make
cp -aR $(LIB_DIR)/piper_phonemize/lib/espeak-ng-data $(LIB_DIR)/piper_phonemize/lib/*.so* $(LIB_DIR)/piper_phonemize/etc/* build/
all:
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=install
cmake --build build --config Release
cd build && ctest --config Release
cmake --install build
clean:
rm -rf build/ dist/
docker:
docker buildx build . --platform '$(DOCKER_PLATFORM)' --output 'type=local,dest=dist'
rm -rf build install