[skip ci] Update MacOS CI image

This commit is contained in:
red0124 2025-07-05 03:40:49 +02:00
parent 32d9d0de68
commit 206a1fca6f
2 changed files with 10 additions and 6 deletions

View File

@ -25,10 +25,10 @@ jobs:
strategy:
matrix:
xcode: ['13.4.1', '14.1']
xcode: ['15.2']
type: [Release, Debug]
runs-on: macos-12
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer
@ -42,7 +42,7 @@ jobs:
id: cores
- name: Install dependencies
run: script/ci_install_deps.sh
run: script/ci_install_deps.sh sudo
- name: Configure
run: cmake -S test -B build -DCMAKE_BUILD_TYPE=${{matrix.type}}

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
JOBS=4
BUILD_TYPE=Debug
set -eux
set -ex
git clone https://github.com/red0124/doctest -b master --depth 1
@ -12,6 +12,10 @@ cmake -S doctest -B doctest/build \
-D DOCTEST_WITH_MAIN_IN_STATIC_LIB=NO \
-D DOCTEST_WITH_TESTS=NO
cmake --build doctest/build --config ${BUILD_TYPE} --target install -j ${JOBS}
if [[ "${1}" == "sudo" ]]; then
sudo cmake --build doctest/build --config ${BUILD_TYPE} --target install -j ${JOBS}
else
cmake --build doctest/build --config ${BUILD_TYPE} --target install -j ${JOBS}
fi
rm -rf doctest