This commit is contained in:
ConfiG 2024-06-28 22:06:51 +03:00 committed by GitHub
parent 5eedc99b4f
commit 08ccb5422b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 14 deletions

View file

@ -15,7 +15,7 @@ outputs:
description: 'Extra stuff for CMake build step'
value: |
python3 ./ninjatracing/ninjatracing ./build/.ninja_log > ./build-debug-info/ninja-trace.json
#${{ inputs.has-sccache && 'sccache --show-adv-stats' || '' }}
${{ inputs.has-sccache && 'sccache --show-adv-stats' || '' }}
runs:
using: "composite"

View file

@ -6,12 +6,12 @@ on:
build-debug-info:
description: 'Profile and debug the build process'
required: false
default: true
default: false
type: boolean
use-ccache:
description: 'Enable ccache/sccache'
required: false
default: false
default: true
type: boolean
pull_request:
push:
@ -148,14 +148,14 @@ jobs:
id: build-debug-info
uses: ./.github/actions/build-debug-info
with:
has-sccache: false
has-sccache: ${{ inputs.use-ccache }}
- name: Setup caches
uses: ./.github/actions/setup-cache
with:
host: mac
target: mac
use-ccache: false
use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
if: false
- name: Setup Ninja
@ -165,9 +165,8 @@ jobs:
- name: Install LLVM
run: |
brew install llvm@14
echo "/opt/homebrew/opt/llvm@14/bin" >> $GITHUB_PATH
if: false
brew install llvm@17
echo "/opt/homebrew/opt/llvm@17/bin" >> $GITHUB_PATH
- name: Setup CLI
uses: geode-sdk/cli/.github/actions/setup@main
@ -180,18 +179,12 @@ jobs:
-DCMAKE_AR='/usr/bin/ar'
-DCMAKE_RANLIB='/usr/bin/ranlib'
-DGEODE_DISABLE_PRECOMPILED_HEADERS=Off
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
-DCMAKE_OSX_SYSROOT=/Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
${{ steps.build-debug-info.outputs.extra-configure }}
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
- name: Build
run: |
${{ env.base-build-command }}
${{ steps.build-debug-info.outputs.extra-build }}
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
- name: Upload Artifacts
uses: actions/upload-artifact@v4

View file

@ -24,6 +24,9 @@ elseif (GEODE_TARGET_PLATFORM STREQUAL "MacOS")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()
# only exists as a global property
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
target_link_libraries(${PROJECT_NAME} INTERFACE
"-framework Cocoa"
"-framework OpenGL"