Skip to content

Commit

Permalink
ci: added yaxt and yac builds to the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wiltonloch committed Mar 21, 2024
1 parent c02bf19 commit cdd22e0
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,36 @@ jobs:
- name: Setup
run: |
sudo apt-get update
sudo apt-get install -y cmake
sudo apt-get install -y \
cmake libnetcdff-dev liblapack-dev python3-dev \
python3-numpy python3-mpi4py python3-pip curl \
libfyaml-dev libopenmpi-dev openmpi-bin
- name: Build YAXT
run: |
curl -s -L https://swprojects.dkrz.de/redmine/attachments/download/529/yaxt-0.10.0.tar.gz | tar xvz
cd yaxt-0.10.0
./configure --without-regard-for-quality --without-example-programs --without-perf-programs --with-pic
make -j 4
make install
- name: Build YAC
run: |
curl -s -L https://gitlab.dkrz.de/dkrz-sw/yac/-/archive/release-3.0.3_p2/yac-release-3.0.3_p2.tar.gz | tar xvz
cd yac-release-3.0.3_p2
./configure CFLAGS="-fPIC" CC=mpicc FC=mpif90 --disable-mpi-checks
make -j 4
make install
- name: Build main
run: |
mkdir build && cd build
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON ..
cmake \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DKokkos_ARCH_NATIVE=ON \
-DKokkos_ENABLE_SERIAL=ON \
-DCMAKE_MODULE_PATH=${PWD}/../libs/coupldyn_yac/cmake ..
make
- name: Build example adia0D
Expand Down

0 comments on commit cdd22e0

Please sign in to comment.