Skip to content

Commit

Permalink
Disable rtmidi driver in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgnsk committed Nov 24, 2024
1 parent ce3147a commit c83158d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ jobs:
go-version: 1.22

- name: Run test
env:
CGO_ENABLED: 0
run: go test ./...
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
env:
CGO_ENABLED: 1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
Expand Down
1 change: 0 additions & 1 deletion cmd/balafon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/spf13/cobra"
"gitlab.com/gomidi/midi/v2"
"gitlab.com/gomidi/midi/v2/drivers"
_ "gitlab.com/gomidi/midi/v2/drivers/rtmididrv"
"golang.org/x/term"
)

Expand Down
7 changes: 7 additions & 0 deletions driver_cgo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//go:build cgo

package balafon

import (
_ "gitlab.com/gomidi/midi/v2/drivers/rtmididrv"
)

0 comments on commit c83158d

Please sign in to comment.