forked from JeanPhilippeKernel/RendererEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.33 KB
/
job-cmakebuild-macOS.yml
File metadata and controls
44 lines (38 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# CMake build of ZEngine for macOS
#
name: ZEngine macOS Workflow
on:
workflow_call:
inputs:
targetFramework:
type: string
required: true
configuration:
type: string
default: 'Debug'
architecture:
type: string
default: 'x64'
jobs:
cmake-build:
name: cmake-build-macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
runs-on: ${{ inputs.architecture == 'x64' && 'macos-15-intel' || 'macos-latest' }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install NuGet CLI
run: brew install nuget
- name: Update LLVM
run: brew install llvm
- name: CMake Build
run: .\Scripts\BuildEngine.ps1 -Configurations ${{inputs.configuration}} -Architecture ${{inputs.architecture}} -RunClangFormat 0
shell: pwsh
- name: Publish Build Artifacts
uses: actions/upload-artifact@v6
with:
name: Build-macOS-${{ inputs.architecture }}-${{inputs.configuration}}
if-no-files-found: error
path: |
Result.Darwin.${{inputs.architecture}}.${{inputs.configuration}}/bin/
Result.Darwin.${{inputs.architecture}}.${{inputs.configuration}}/lib/*vulkan*
Result.Darwin.${{inputs.architecture}}.${{inputs.configuration}}/tests