mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-15 03:45:30 +07:00
29 lines
940 B
YAML
29 lines
940 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-11", xcode: "13.0", arch: "x64" }
|
|
- { os: "macos-11", xcode: "13.1", arch: "x64" }
|
|
- { os: "macos-11", xcode: "13.2", arch: "x64" }
|
|
name: "xcode-${{matrix.config.xcode}}"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Install ninja by Homebrew
|
|
run: brew install ninja
|
|
- name: Select Xcode
|
|
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
|
|
- name: Build && Test
|
|
run: |
|
|
cmake --preset macos-${{matrix.config.arch}}
|
|
cmake --build --preset macos-${{matrix.config.arch}}-release
|
|
ctest --preset macos-${{matrix.config.arch}}-release |