-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 874 Bytes
/
rust.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
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
OPENTOK_PATH: libopentok_linux_llvm_x86_64
LD_LIBRARY_PATH: libopentok_linux_llvm_x86_64/lib
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install SDK
run: |
wget https://tokbox.com/downloads/libopentok_linux_llvm_x86_64-2.19.1
tar xf libopentok_linux_llvm_x86_64-2.19.1
rm -f libopentok_linux_llvm_x86_64-2.19.1
sudo apt update
sudo apt -y install clang libc++-dev libc++abi-dev libgstreamer-plugins-base1.0-dev
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --test-threads=1
env:
OPENTOK_KEY: ${{ secrets.OPENTOK_KEY }}
OPENTOK_SECRET: ${{ secrets.OPENTOK_SECRET }}