Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize macOS workflow #799

Merged
merged 1 commit into from
Mar 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ jobs:
steps:
- name: Checkout built branch
uses: actions/checkout@v4
with: { submodules: true }
- uses: actions/checkout@v4
with:
repository: pdidev/pdi
ref: 1.8.3
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 +99,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 +118,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 +132,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,7 +169,7 @@ 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
Expand Down
Loading