mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
.github/workflow: add a test to build with the build tag ebitencbackend
This commit is contained in:
parent
73d995740f
commit
ab1ad2c72f
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -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.')) }}
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user