Skip to content

Commit

Permalink
Add macOS 14 / arm64 native compatibility CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LourensVeen committed Jun 21, 2024
1 parent 5a7889c commit 37bc3e1
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci_macos14_clang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Run Continuous Integration on macOS 14 Sonoma, with native Clang and
# without Fortran.

# This mainly checks for issues/regressions in the native build
name: compatibility_macos_sonoma_14_clang
on:
schedule:
- cron: '30 8 * * 6'
push:
branches:
- 'release-*'
- fix_native_compatibility_ci
jobs:
build:
runs-on: macos-14
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: Install dependencies
run: |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install openmpi
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install pkg-config
python3 -m pip install --upgrade pip
pip3 install tox tox-gh-actions
- name: Run all tests on macOS Sonoma 14 with Clang
run: cd ${GITHUB_WORKSPACE} && make test test_examples

34 changes: 34 additions & 0 deletions .github/workflows/ci_macos14_gcc_gfortran.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Run Continuous Integration on macOS 14 Sonoma with GCC
# This includes Fortran support
# This mainly checks for issues/regressions in the native build
name: compatibility_macos_sonoma_14_gcc_gfortran
on:
schedule:
- cron: '00 8 * * 6'
push:
branches:
- 'release-*'
- fix_native_compatibility_ci
jobs:
build:
runs-on: macos-14
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: Install dependencies
run: |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gcc
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install openmpi
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install pkg-config
python3 -m pip install --upgrade pip
pip3 install tox tox-gh-actions
- name: Run all tests
run: cd ${GITHUB_WORKSPACE} && CXX=g++-12 OMPI_CXX=g++-12 FC=gfortran-12 OMPI_FC=gfortran-12 make test test_examples

0 comments on commit 37bc3e1

Please sign in to comment.