Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump macos version #1299

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
42 changes: 42 additions & 0 deletions .github/workflows/build-ios-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: C/C++ CI for iOS

on:
push:
branches:
- master
- main
- dev
- dev/*
- release/*
- buildme/*

pull_request:
branches:
- master
- main
- dev

schedule:
- cron: 0 2 * * 1-5

jobs:
build:
strategy:
matrix:
os: [macos-12, macos-14]
config: [release, debug]
simulator: ["'iPhone 8'", "'iPad Air (3rd generation)'"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
continue-on-error: true
- name: build
run: |
if [[ "${{ matrix.os }}" == "macos-12" ]]; then
export IOS_DEPLOYMENT_TARGET=12.0;
elif [[ "${{ matrix.os }}" == "macos-14" ]]; then
export IOS_DEPLOYMENT_TARGET=14.0;
fi
./build-tests-ios.sh ${{ matrix.config }} ${{ matrix.simulator }}
35 changes: 0 additions & 35 deletions .github/workflows/build-ios-mac11.yml

This file was deleted.

17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
cmake_minimum_required(VERSION 3.1.0)
project(MSTelemetry)

# Set installation prefix for macOS and Linux
if(UNIX AND NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation directory prefix" FORCE)
endif()

# Check write access to prefix, fallback to user's home directory if needed (Unix only)
if(UNIX)
file(WRITE "${CMAKE_INSTALL_PREFIX}/.cmake_write_test" "")
if("${CMAKE_STATUS}" STREQUAL "0")
message(STATUS "Write access to ${CMAKE_INSTALL_PREFIX} confirmed.")
file(REMOVE "${CMAKE_INSTALL_PREFIX}/.cmake_write_test")
else()
set(CMAKE_INSTALL_PREFIX "$ENV{HOME}/mst_telemetry" CACHE PATH "Fallback installation directory prefix" FORCE)
message(STATUS "No write access to ${CMAKE_INSTALL_PREFIX}, installing to $HOME/mst_telemetry instead.")
endif()
endif()

set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
Expand Down
Loading