Add fork information, update CI
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2022-01-27 17:19:10 +01:00
parent 1a9beeaf07
commit 12bf62a8f4
5 changed files with 22 additions and 43 deletions

15
.drone.yml Normal file
View 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 ./...
...

View file

@ -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
View file

@ -18,3 +18,5 @@ _testmain.go
# Just noise
*~
*.orig
/.idea

View file

@ -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
@ -20,7 +20,7 @@ xiph.org opus libs:
### Import
```go
import "gopkg.in/hraban/opus.v2"
import "git.gammaspectra.live/S.O.N.G/go-pus"
```
### Encoding

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module git.gammaspectra.live/S.O.N.G/go-pus
go 1.17