Skip to content

Commit

Permalink
Modernize macOS workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Mar 8, 2025
1 parent 75e8831 commit 26d8fd3
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ jobs:
CXX: ${{matrix.backend.cxx_compiler}}
CMAKE_BUILD_TYPE: ${{matrix.cmake_build_type}}
steps:
- name: Checkout built branch
uses: actions/checkout@v4
with: { submodules: true }
- uses: actions/checkout@v4
with:
repository: pdidev/pdi
ref: 1.8.1
path: pdi
- name: Install PDI+user code plugin and dependencies
run: |
git clone --branch 1.8.1 --depth 1 https://github.com/pdidev/pdi.git
# PATCH: remove <link.h> for macOS
sed -i.bak 's|#include <link.h>||g' pdi/plugins/user_code/user_code.cxx
rm -f pdi/plugins/user_code/user_code.cxx.bak
Expand Down Expand Up @@ -96,10 +97,13 @@ jobs:
run: brew install googletest
- name: Install Google benchmark
run: brew install google-benchmark
- run: git config --global --add safe.directory '*'
- uses: actions/checkout@v4
with:
repository: ginkgo-project/ginkgo
ref: v1.8.0
path: ginkgo
- name: Install Ginkgo
run: |
git clone --branch v1.8.0 --depth 1 https://github.com/ginkgo-project/ginkgo.git
cmake \
-DCMAKE_CXX_STANDARD=${{matrix.cxx_version}} \
-DGINKGO_BUILD_BENCHMARKS=OFF \
Expand All @@ -112,6 +116,11 @@ jobs:
cmake --build build
cmake --install build --prefix $Ginkgo_ROOT
rm -rf build
- uses: actions/checkout@v4
with:
repository: kokkos/kokkos
ref: 4.5.01
path: kokkos
- name: Install Kokkos
run: |
cmake \
Expand All @@ -121,20 +130,30 @@ jobs:
-DKokkos_ENABLE_SERIAL=ON \
${{matrix.backend.kokkos_extra_cmake_flags}} \
-B build \
-S ./vendor/kokkos
-S ./kokkos
cmake --build build
cmake --install build --prefix $Kokkos_ROOT
rm -rf build
- uses: actions/checkout@v4
with:
repository: kokkos/kokkos-fft
ref: v0.2.1
path: kokkos-fft
- name: Install Kokkos-fft
run: |
cmake \
-DCMAKE_CXX_STANDARD=${{matrix.cxx_version}} \
-DKokkosFFT_ENABLE_HOST_AND_DEVICE=ON \
-B build \
-S ./vendor/kokkos-fft
-S ./kokkos-fft
cmake --build build
cmake --install build --prefix $KokkosFFT_ROOT
rm -rf build
- uses: actions/checkout@v4
with:
repository: kokkos/kokkos-kernels
ref: 4.5.01
path: kokkos-kernels
- name: Install Kokkos Kernels
run: |
cmake \
Expand All @@ -148,10 +167,12 @@ jobs:
-DKokkosKernels_ENABLE_TPL_CUSOLVER=OFF \
-DKokkosKernels_ENABLE_TPL_LAPACK=OFF \
-B build \
-S ./vendor/kokkos-kernels
-S ./kokkos-kernels
cmake --build build
cmake --install build --prefix $KokkosKernels_ROOT
rm -rf build
- name: Checkout built branch
uses: actions/checkout@v4
- name: Build DDC
run: |
cmake \
Expand Down

0 comments on commit 26d8fd3

Please sign in to comment.