.github/workflow: add a test to build with the build tag ebitencbackend

This commit is contained in:
Hajime Hoshi 2022-02-13 16:57:48 +09:00
parent 73d995740f
commit ab1ad2c72f
3 changed files with 9 additions and 4 deletions

View File

@ -79,6 +79,11 @@ jobs:
env GOOS=windows GOARCH=amd64 go build -tags=example -v ./...
env GOOS=windows GOARCH=386 go build -tags=example -v ./...
- name: go build (cbackend)
if: ${{ !startsWith(matrix.os, 'windows-')
run: |
go build -tags=example,ebitencbackend -v ./...
- name: go test (Go 1.16 or older)
# TODO: Add more test environments (#1305)
if: ${{ startsWith(matrix.os, 'ubuntu-') && (startsWith(matrix.go, '1.15.') || startsWith(matrix.go, '1.16.')) }}

View File

@ -24,8 +24,8 @@ package gl
#cgo linux,!ebitencbackend freebsd,!ebitencbackend openbsd,!ebitencbackend pkg-config: gl
#cgo egl CFLAGS: -DTAG_EGL
#cgo egl,!ebitencbackend pkg-config: egl
#cgo !darwin ebitencbackend LDFLAGS: -Wl,-unresolved-symbols=ignore-all
#cgo darwin ebitencbackend LDFLAGS: -Wl,-undefined,dynamic_lookup
#cgo !darwin,ebitencbackend LDFLAGS: -Wl,-unresolved-symbols=ignore-all
#cgo darwin,ebitencbackend LDFLAGS: -Wl,-undefined,dynamic_lookup
// Check the EGL tag first as it takes priority over the platform's default
// configuration of WGL/GLX/CGL.
#if defined(TAG_EGL)

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !darwin || ebitengl
// +build !darwin ebitengl
//go:build !darwin || ebitencbackend || ebitengl
// +build !darwin ebitencbackend ebitengl
package ui