forked from wenet-e2e/wenet
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 842 Bytes
/
runtime.yml
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
name: Build Runtime
on:
workflow_dispatch:
pull_request:
paths:
- 'runtime/**'
env:
RUNTIME_DIR: runtime/libtorch
FC_BASE_DIR: runtime/libtorch/fc_base
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Cache FC Base
uses: actions/cache@v3
with:
path: ${{ env.FC_BASE_DIR }}
key: ${{ runner.os }}-fc-base
- uses: hendrikmuhs/[email protected]
with:
key: ${{ runner.os }}-build
- name: Build
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd ${{ env.RUNTIME_DIR }}
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j$(nproc)