-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.43 KB
/
workflow.yml
File metadata and controls
49 lines (38 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: workflow
on: push
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
deepspeech-os: linux
toolchain: ''
- os: windows-latest
deepspeech-os: win
toolchain: -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
runs-on: ${{matrix.os}}
env:
BUILD_TYPE: Release
DEEPSPEECH_URL: https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/native_client.amd64.cpu.${{matrix.deepspeech-os}}.tar.xz
steps:
- uses: actions/checkout@v2
- name: Install Lua
if: ${{matrix.os == 'ubuntu-latest'}}
run: sudo apt install liblua5.1-dev
- name: Install Lua
if: ${{matrix.os == 'windows-latest'}}
run: vcpkg install lua
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build ${{github.workspace}}/build/deepspeech
- name: Download DeepSpeech
shell: bash
working-directory: ${{github.workspace}}/build/deepspeech
run: curl -sL ${DEEPSPEECH_URL} | tar xJ
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDEEPSPEECH_PATH=${{github.workspace}}/build/deepspeech ${{matrix.toolchain}}
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config $BUILD_TYPE