Skip to content

Commit

Permalink
ci: Add GitHub Action for macOS building
Browse files Browse the repository at this point in the history
1. macos-13 for x86_64 macOS.
2. macos-14 for arm64 macOS.

Signed-off-by: utzcoz <[email protected]>
  • Loading branch information
utzcoz committed Sep 15, 2024
1 parent e22516b commit 6397e2a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]"
- name: Prepare Vulkan SDK
uses: humbletim/[email protected]
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" ../..

0 comments on commit 6397e2a

Please sign in to comment.