CMake: add a policy_max to cmake_minimum_required(), and remove obsol… #997
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MacOS build | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
macos_build: | |
runs-on: macos-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
use-mamba: true | |
- name: Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ${{ github.workspace }}/.ccache | |
key: ${{ runner.os }}-cache-mac-${{ github.run_id }} | |
restore-keys: ${{ runner.os }}-cache-mac- | |
- name: Install Requirements | |
shell: bash -l {0} | |
run: | | |
source .github/workflows/mac/before_install.sh | |
- name: Build | |
shell: bash -l {0} | |
run: | | |
export TRAVIS_BUILD_DIR=$PWD | |
source .github/workflows/mac/install.sh | |
env: | |
CCACHE_DIR: ${{ github.workspace }}/.ccache | |
TRAVIS_OS_NAME: osx | |
BUILD_NAME: osx |