Skip to content

Commit

Permalink
macos-12 github action deprecated (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan authored Dec 21, 2024
1 parent c3f0fc3 commit f9116eb
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/cmake_macos.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CMake MacOS

# if issues with libquadmath appear again, see previous version:
# https://github.com/PHAREHUB/PHARE/blob/61ad57b285e875b396ecf8957e0579427ad6be30/.github/workflows/cmake_macos.yml

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -14,15 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-12, macos-13, macos-latest]
include:
- os: macos-12
dylib_path: /usr/local/lib/gcc/current
- os: macos-13
dylib_path: /usr/local/lib/gcc/current
- os: macos-latest # https://github.com/actions/runner/issues/3337
dylib_path: /opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/current

os: [ macos-13, macos-14, macos-latest]

steps:
- name: Build Info
Expand Down Expand Up @@ -78,11 +73,7 @@ jobs:

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
env:
LIBRARY_PATH: ${{ matrix.dylib_path }} # used by clang, needed to find libquadmath - else link error
run: |
[ -d /opt/homebrew/Cellar/gcc ] && ls -l /opt/homebrew/Cellar/gcc
[ ! -d "${{matrix.dylib_path}}" ] && echo dylib_path not found && find / -name "libquadmath.0.dylib" && exit 1
cmake $GITHUB_WORKSPACE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_SAMRAI_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache \
Expand All @@ -91,8 +82,6 @@ jobs:
- name: Build
working-directory: ${{runner.workspace}}/build
env:
LIBRARY_PATH: ${{ matrix.dylib_path }} # used by clang, needed to find libquadmath - else link error
run: cmake --build . -j 2

- name: Test
Expand Down

0 comments on commit f9116eb

Please sign in to comment.