Add fork information, update CI
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1a9beeaf07
commit
12bf62a8f4
15
.drone.yml
Normal file
15
.drone.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: full
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build
|
||||||
|
image: golang:1.18-rc-bullseye
|
||||||
|
commands:
|
||||||
|
- apt update
|
||||||
|
- DEBIAN_FRONTEND=noninteractive apt install -y pkg-config libopus-dev libopusfile-dev moreutils
|
||||||
|
- gofmt -d . | tee /dev/stderr | ifne false
|
||||||
|
- go test -race -v ./...
|
||||||
|
|
||||||
|
...
|
41
.github/workflows/test.yml
vendored
41
.github/workflows/test.yml
vendored
|
@ -1,41 +0,0 @@
|
||||||
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 ./...
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,3 +18,5 @@ _testmain.go
|
||||||
# Just noise
|
# Just noise
|
||||||
*~
|
*~
|
||||||
*.orig
|
*.orig
|
||||||
|
|
||||||
|
/.idea
|
|
@ -1,4 +1,4 @@
|
||||||
[![Test](https://github.com/hraban/opus/workflows/Test/badge.svg)](https://github.com/hraban/opus/actions?query=workflow%3ATest)
|
Fork of [github.com/hraban/opus](https://github.com/hraban/opus)
|
||||||
|
|
||||||
## Go wrapper for Opus
|
## Go wrapper for Opus
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ xiph.org opus libs:
|
||||||
### Import
|
### Import
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gopkg.in/hraban/opus.v2"
|
import "git.gammaspectra.live/S.O.N.G/go-pus"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Encoding
|
### Encoding
|
||||||
|
|
Loading…
Reference in a new issue