From 12bf62a8f4f43547933412f7d092ffe810f55fc7 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Thu, 27 Jan 2022 17:19:10 +0100 Subject: [PATCH] Add fork information, update CI --- .drone.yml | 15 ++++++++++++++ .github/workflows/test.yml | 41 -------------------------------------- .gitignore | 2 ++ README.md | 4 ++-- go.mod | 3 +++ 5 files changed, 22 insertions(+), 43 deletions(-) create mode 100644 .drone.yml delete mode 100644 .github/workflows/test.yml create mode 100644 go.mod diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0cf6144 --- /dev/null +++ b/.drone.yml @@ -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 ./... + +... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 49d5990..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -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 ./... \ No newline at end of file diff --git a/.gitignore b/.gitignore index 245726c..0bff2f4 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ _testmain.go # Just noise *~ *.orig + +/.idea \ No newline at end of file diff --git a/README.md b/README.md index f615e84..f9a8f05 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..58bce08 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.gammaspectra.live/S.O.N.G/go-pus + +go 1.17