mirror of
https://github.com/BlackMATov/promise.hpp.git
synced 2025-12-13 03:46:29 +07:00
31 lines
910 B
YAML
31 lines
910 B
YAML
name: darwin
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{matrix.config.os}}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
config:
|
|
# https://github.com/actions/virtual-environments/tree/main/images/macos
|
|
- { os: "macos-10.15", xcode: "10.3", arch: "x64" }
|
|
- { os: "macos-12", xcode: "14.2", arch: "x64" }
|
|
name: "xcode-${{matrix.config.xcode}}"
|
|
steps:
|
|
- name: Setup
|
|
run: brew install cmake ninja
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Select Xcode
|
|
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
|
|
- name: Build
|
|
run: |
|
|
cmake --preset macos-${{matrix.config.arch}}
|
|
cmake --build --preset macos-${{matrix.config.arch}}-release
|
|
- name: Test
|
|
run: |
|
|
ctest --preset macos-${{matrix.config.arch}}-release |