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();