From 0a7e8d341c10f256ffac11e8ea017d675575faf7 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 16 Jul 2021 10:57:37 -0700 Subject: [PATCH] CI: add macOS testing pipeline (#2) * CI: add macOS testing pipeline * glfw: use hidden window Signed-off-by: Stephen Gutekanst --- .github/workflows/ci.yml | 15 +++++++++++++++ glfw/src/main.zig | 1 + 2 files changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b7ed45b..cd9d3ddd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,3 +42,18 @@ jobs: run: zig build test - name: webgpu::test run: cd webgpu && zig build test + mac: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Zig + run: | + brew install xz + sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.9.0-dev.453+7ef854682.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' + - name: mach::test + run: zig build test + env: + AGREE: true + - name: webgpu::test + run: cd webgpu && zig build test diff --git a/glfw/src/main.zig b/glfw/src/main.zig index 6bb113b4..4e0c3cae 100644 --- a/glfw/src/main.zig +++ b/glfw/src/main.zig @@ -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();