CI: add macOS testing pipeline (#2)

* CI: add macOS testing pipeline
* glfw: use hidden window

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-16 10:57:37 -07:00 committed by GitHub
parent 395fad07a6
commit 0a7e8d341c
Failed to generate hash of commit
2 changed files with 16 additions and 0 deletions

View file

@ -7,6 +7,7 @@ pub fn basicTest() void {
if (c.glfwInit() != c.GLFW_TRUE) {
@panic("failed to init");
}
c.glfwWindowHint(c.GLFW_VISIBLE, c.GLFW_FALSE);
const window = c.glfwCreateWindow(640, 480, "GLFW example", null, null);
if (window == null) {
c.glfwTerminate();