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 ./... 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