forked from hraban/opus
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.15 KB
/
test.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
38
39
40
41
on: [push, pull_request]
name: Test
jobs:
full:
strategy:
matrix:
go-version:
- 1.14.x
platform:
# Would like to test mac & win but not sure how to install opus on
# those in GH actions, yet.
- ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install system dependencies
run: sudo apt-get install pkg-config libopus-dev libopusfile-dev moreutils
- name: Checkout code
uses: actions/checkout@v2
# Could be a separate step but this is so quick--just put it here
- name: Lint
run: gofmt -d . | tee /dev/stderr | ifne false
- name: Test
run: go test -race -v ./...
no-libopusfile:
runs-on: ubuntu-20.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: Install system dependencies
run: sudo apt-get install pkg-config libopus-dev
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -tags nolibopusfile -race -v ./...