From 5f3f7b3514e7accbeca610e4aa32a5485f26f9cd Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 7 Feb 2020 23:31:14 +0100 Subject: [PATCH] .builds: make the GLFW example build on the automatic builders Signed-off-by: Elias Naur --- .builds/freebsd.yml | 6 +++--- .builds/linux.yml | 11 ++++++++--- .builds/openbsd.yml | 6 +++--- example/glfw/main.go | 4 ++++ 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index 4db60992..9a5a3748 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -19,9 +19,9 @@ tasks: - test_gio: | cd gio go test ./... - - test_example: | - cd gio/example - go test ./... - test_cmd: | cd gio/cmd go test ./... + - test_example: | + cd gio/example + go test ./... diff --git a/.builds/linux.yml b/.builds/linux.yml index a8f27577..2dc9a4e0 100644 --- a/.builds/linux.yml +++ b/.builds/linux.yml @@ -10,6 +10,11 @@ packages: - libxkbcommon-x11-dev - libgles2-mesa-dev - libegl1-mesa-dev + - libxcursor-dev + - libxrandr-dev + - libxinerama-dev + - libxi-dev + - libxxf86vm-dev - wine - golang - xvfb @@ -38,13 +43,13 @@ tasks: cd gio go test -race ./... GOOS=windows go test -exec=wine ./... - - test_example: | - cd gio/example - go test -race ./... - test_cmd: | cd gio/cmd go test ./... go test -race ./... + - test_example: | + cd gio/example + go test -race ./... - check_gofmt: | cd gio test -z "$(gofmt -s -l .)" diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml index 3124ad5d..d4d28ee5 100644 --- a/.builds/openbsd.yml +++ b/.builds/openbsd.yml @@ -15,9 +15,9 @@ tasks: - test_gio: | cd gio go test ./... - - test_example: | - cd gio/example - go test ./... - test_cmd: | cd gio/cmd go test ./... + - test_example: | + cd gio/example + go test ./... diff --git a/example/glfw/main.go b/example/glfw/main.go index dbd4efa5..b9c503b8 100644 --- a/example/glfw/main.go +++ b/example/glfw/main.go @@ -1,4 +1,8 @@ // SPDX-License-Identifier: Unlicense OR MIT + +// package glfw doesn't build on OpenBSD and FreeBSD. +// +build !openbsd,!freebsd,!windows,!android,!ios,!js + package main import (