Skip to content

Commit

Permalink
Upgrade macOS CI workflow
Browse files Browse the repository at this point in the history
macos-11 is deprecated by GitHub. It's not supported by Homebrew anymore
either, so fetching dependencies ran into issues.
  • Loading branch information
nilsvu committed Jun 3, 2024
1 parent 27fb0ec commit 2b186a7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -847,17 +847,15 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
# Build all test executables and run unit tests on macOS
unit_tests_macos:
name: Unit tests on macOS
runs-on: macos-13
runs-on: macos-14
env:
# We install some low-level dependencies with Homebrew. They get picked up
# by `spack external find`.
SPECTRE_BREW_DEPS: >- # Line breaks are spaces, no trailing newline
autoconf automake catch2 ccache cmake pkg-config boost
autoconf automake boost catch2 ccache cmake gsl hdf5 pkg-config
# We install these packages with Spack and cache them. The full specs are
# listed in support/DevEnvironments/spack.yaml. This list is only needed
# to create the cache.
SPECTRE_SPACK_DEPS: >-
blaze charmpp gsl hdf5 libxsmm openblas yaml-cpp
# listed below. This list is only needed to create the cache.
SPECTRE_SPACK_DEPS: charmpp
CCACHE_DIR: $HOME/ccache
CCACHE_TEMPDIR: $HOME/ccache-tmp
CCACHE_MAXSIZE: "2G"
Expand All @@ -875,7 +873,7 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Install Homebrew dependencies
run: |
brew install $SPECTRE_BREW_DEPS
Expand All @@ -893,7 +891,7 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
run: |
cd $HOME
git clone -c feature.manyFiles=true --depth=1 \
--branch releases/v0.18 --single-branch \
--branch releases/v0.22 --single-branch \
https://github.com/spack/spack.git
- name: Configure Spack
# - To avoid re-building packages that are already installed by Homebrew
Expand All @@ -912,9 +910,9 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
- name: Install Spack dependencies
run: |
source $HOME/spack/share/spack/setup-env.sh
spack env create spectre support/DevEnvironments/spack.yaml
spack env create spectre
spack env activate spectre
spack remove catch2 doxygen jemalloc boost
spack add charmpp@7.0.0 backend=multicore build-target=charm++
spack concretize --reuse
spack install --no-check-signature
spack find -v
Expand Down Expand Up @@ -977,7 +975,7 @@ ${{ matrix.build_type }}-pch-${{ matrix.use_pch || 'ON' }}"
-D OVERRIDE_ARCH=x86-64 \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_PYTHON_BINDINGS=ON \
-D BOOTSTRAP_PY_DEPS=ON \
-D SPECTRE_FETCH_MISSING_DEPS=ON \
-D MEMORY_ALLOCATOR=SYSTEM \
-D CHARM_ROOT=$(spack location --install-dir charmpp) \
-D CMAKE_BUILD_TYPE=Debug \
Expand Down

0 comments on commit 2b186a7

Please sign in to comment.