Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/MacOS-Build-Optimized.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake on multiple platforms
name: MacOS Build Optimized

on:
push:
Expand Down Expand Up @@ -28,6 +28,13 @@ jobs:
with:
submodules: recursive

- name: Setup ccache (Linux/macOS)
if: runner.os != 'Windows'
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ matrix.cpp_compiler }}-${{ matrix.build_type }}
max-size: 500M

- name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
Expand All @@ -52,14 +59,14 @@ jobs:
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake with Ninja
- name: Configure CMake (Ninja)
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-G Ninja
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
cmake -S .
-B build
-G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --parallel

Expand Down
Loading