From ec7261f4c4acf4e656b0477a2e71e7efe4b3d8ee Mon Sep 17 00:00:00 2001 From: Hraban Luyat Date: Wed, 2 Mar 2022 15:25:56 -0500 Subject: [PATCH 1/2] ci: test with go version 1.17 --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49d5990..373447e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ jobs: strategy: matrix: go-version: - - 1.14.x + - 1.17.x platform: # Would like to test mac & win but not sure how to install opus on # those in GH actions, yet. @@ -32,10 +32,10 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: 1.17.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 + run: go test -tags nolibopusfile -race -v ./... From aff0885e05976183e2624c80ef815a11235d82e6 Mon Sep 17 00:00:00 2001 From: Hraban Luyat Date: Wed, 2 Mar 2022 15:28:42 -0500 Subject: [PATCH 2/2] chore: gofmt updates in 1.17 --- stream.go | 1 + stream_errors.go | 1 + stream_test.go | 1 + streams_map.go | 1 + 4 files changed, 4 insertions(+) diff --git a/stream.go b/stream.go index 323da2d..4dcb37d 100644 --- a/stream.go +++ b/stream.go @@ -2,6 +2,7 @@ // // License for use of this code is detailed in the LICENSE file +//go:build !nolibopusfile // +build !nolibopusfile package opus diff --git a/stream_errors.go b/stream_errors.go index f1b5cba..3f98a1f 100644 --- a/stream_errors.go +++ b/stream_errors.go @@ -2,6 +2,7 @@ // // License for use of this code is detailed in the LICENSE file +//go:build !nolibopusfile // +build !nolibopusfile package opus diff --git a/stream_test.go b/stream_test.go index c6eb4fe..53ba341 100644 --- a/stream_test.go +++ b/stream_test.go @@ -2,6 +2,7 @@ // // License for use of this code is detailed in the LICENSE file +//go:build !nolibopusfile // +build !nolibopusfile package opus diff --git a/streams_map.go b/streams_map.go index 944ab39..2e3ee76 100644 --- a/streams_map.go +++ b/streams_map.go @@ -2,6 +2,7 @@ // // License for use of this code is detailed in the LICENSE file +//go:build !nolibopusfile // +build !nolibopusfile package opus