Skip to content

Commit

Permalink
build linux
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 27, 2024
1 parent c3a1de4 commit c7f73c0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Linux

on:
push:
branches:
- main
paths:
- '.github/workflows/build-linux.yml'
- 'src/**'
- 'include/**'
- 'example/**'
- 'CMakeLists.txt'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x86_64, arm64]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install CMake
run: sudo apt-get install -y cmake

- name: Download ONNX Runtime
run: |
if [ "${{ matrix.arch }}" == "x86_64" ]; then
wget https://github.com/microsoft/onnxruntime/releases/download/v1.18.1/onnxruntime-linux-x64-1.18.1.tgz -O onnxruntime.tgz
else
wget https://github.com/microsoft/onnxruntime/releases/download/v1.18.1/onnxruntime-linux-arm64-1.18.1.tgz -O onnxruntime.tgz
fi
mkdir -p onnxruntime
tar -xzf onnxruntime.tgz -C onnxruntime --strip-components 1
mkdir -p lib
rsync -a onnxruntime/lib/ lib/
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DONNXRUNTIME_DIR=${PWD}/onnxruntime

- name: Build
run: cmake --build build --config Release
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# babylon.cpp

[![Build MacOS](https://github.com/Mobile-Artificial-Intelligence/babylon.cpp/actions/workflows/build-macos.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/babylon.cpp/actions/workflows/build-macos.yml)
[![Build Linux](https://github.com/Mobile-Artificial-Intelligence/babylon.cpp/actions/workflows/build-linux.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/babylon.cpp/actions/workflows/build-linux.yml)

Babylon.cpp is a C and C++ library for grapheme to phoneme conversion and text to speech synthesis.
For phonemization a ONNX runtime port of the [DeepPhonemizer](https://github.com/as-ideas/DeepPhonemizer) model is used.
Expand Down

0 comments on commit c7f73c0

Please sign in to comment.