Skip to content

Update yt documentation (#1832) #17

Update yt documentation (#1832)

Update yt documentation (#1832) #17

Workflow file for this run

name: 🍎 CMake (macOS)
on:
push:
branches: [ development ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ development ]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-cmake-macos
cancel-in-progress: true
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
permissions:
contents: read
jobs:
check_changes:
uses: ./.github/workflows/check_changes.yml
with:
workflow_file: '.github/workflows/cmake-macos.yml'
build:
runs-on: macos-14
needs: check_changes
if: needs.check_changes.outputs.has_non_docs_changes == 'true'
env:
CCACHE_COMPRESS: '1'
CCACHE_COMPRESSLEVEL: '10'
CCACHE_MAXSIZE: 450M
CCACHE_SLOPPINESS: time_macros
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2
with:
submodules: true
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of sonarcloud analysis
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Install Homebrew dependencies
run: |
brew install ccache openmpi hdf5@1.10 || true
brew link --force hdf5@1.10
- name: Output HDF5 configuration (verbose)
run: h5cc -showconfig
- name: Output HDF5 compile flags
run: h5cc -show
- name: Install pip dependencies
run: python3 -m pip install --user numpy matplotlib
- name: Install Canary
run: python3 -m pip install --user canary-wm==25.10.7
- name: Set Up Cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/Library/Caches/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: Initialize ccache
run: |
ccache --version
ccache -z
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/build
env: {CXXFLAGS: "-ffp-exception-behavior=strict"}
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE --parallel 3
- name: Create test output directory
run: cmake -E make_directory $GITHUB_WORKSPACE/tests
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: |
export PATH="$HOME/Library/Python/3.11/bin:$PATH"
canary run --output-on-failure --workers=3 -k 'not HydroWaveConvergence' .
- name: ccache stats
if: always()
run: |
du -hs ~/Library/Caches/ccache
ccache -s
- name: Upload test output
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results
path: ${{github.workspace}}/tests