From 6397e2a59f73a14ef7d347bd0386061eea06a8ba Mon Sep 17 00:00:00 2001 From: utzcoz Date: Sun, 15 Sep 2024 16:55:49 +0800 Subject: [PATCH] ci: Add GitHub Action for macOS building 1. macos-13 for x86_64 macOS. 2. macos-14 for arm64 macOS. Signed-off-by: utzcoz --- .github/workflows/macOS.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/macOS.yml diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml new file mode 100644 index 000000000..7c5d627d2 --- /dev/null +++ b/.github/workflows/macOS.yml @@ -0,0 +1,40 @@ +# Copyright (c) 2024, The Khronos Group Inc. +# SPDX-License-Identifier: CC0-1.0 + +name: macOS + +on: + push: + branches: [ main ] + + pull_request: + branches: [ main ] + +permissions: + contents: read + +jobs: + macOS-build: + strategy: + matrix: + device: [ + macos-13, # Tests Mac x86_64 + macos-14, # Tests Mac arm64 + ] + runs-on: ${{ matrix.device }} + + steps: + - uses: actions/checkout@v4 + - name: "Get modern CMake and Ninja" + uses: "lukka/get-cmake@v3.30.2" + - name: Prepare Vulkan SDK + uses: humbletim/setup-vulkan-sdk@v1.2.0 + with: + vulkan-query-version: 1.3.290.0 + vulkan-components: Vulkan-Headers, Vulkan-Loader + vulkan-use-cache: true + - name: Build + run: | + mkdir -p build/macos + cd build/macos + cmake -G "Xcode" ../.. \ No newline at end of file