Skip to content

Commit

Permalink
Add Loki to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Nov 20, 2024
1 parent 6c20b90 commit 55ef92f
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
build_type: [Release,Bit,Debug]
name:
- linux gnu-12
- linux gnu-12 loki
- linux nvhpc-24.3
# - linux intel-classic

Expand All @@ -45,6 +46,17 @@ jobs:
compiler_fc: gfortran-12
ctest_options: -E memory
caching: true
loki: false

- name: linux gnu-12 loki
os: ubuntu-22.04
compiler: gnu-12
compiler_cc: gcc-12
compiler_cxx: g++-12
compiler_fc: gfortran-12
ctest_options: -E memory
caching: true
loki: true

- name: linux nvhpc-24.3
os: ubuntu-22.04
Expand All @@ -54,7 +66,7 @@ jobs:
compiler_fc: nvfortran
ctest_options: -E memory
caching: true
# caching: false
loki: false

# Intel compiler segfaults in CI with unclear pthread-related backtrace
# - name : linux intel-classic
Expand All @@ -64,12 +76,20 @@ jobs:
# compiler_cxx: icpc
# compiler_fc: ifort
# caching: true
# loki: false

runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
if: matrix.loki
with:
python-version: 3.11
cache: 'pip'

- name: Environment
run: |
echo "DEPS_DIR=${{ runner.temp }}/deps" >> $GITHUB_ENV
Expand Down Expand Up @@ -162,6 +182,25 @@ jobs:
- name: Build & Test
id: build-test
uses: ecmwf-actions/build-package@v2
if: ${{ matrix.loki == false }}
with:
self_coverage: false
force_build: true
cache_suffix: "${{ matrix.build_type }}-${{ env.CACHE_SUFFIX }}"
recreate_cache: ${{ matrix.caching == false }}
dependencies: |
ecmwf/ecbuild
ecmwf-ifs/fiat
dependency_branch: develop
dependency_cmake_options: |
ecmwf-ifs/fiat: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF"
cmake_options: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.cmake_options }} -DENABLE_SINGLE_PRECISION=ON"
ctest_options: "${{ matrix.ctest_options }}"

- name: Build & Test with Loki
id: build-test
uses: ecmwf-actions/build-package@v2
if: matrix.loki
with:
self_coverage: false
force_build: true
Expand All @@ -170,9 +209,11 @@ jobs:
dependencies: |
ecmwf/ecbuild
ecmwf-ifs/fiat
ecmwf-ifs/loki@refs/heads/nabr-cmake-plan
dependency_branch: develop
dependency_cmake_options: |
ecmwf-ifs/fiat: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF"
ecmwf-ifs/loki: "-G Ninja -DENABLE_TESTS=OFF"
cmake_options: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.cmake_options }} -DENABLE_SINGLE_PRECISION=ON"
ctest_options: "${{ matrix.ctest_options }}"

Expand Down

0 comments on commit 55ef92f

Please sign in to comment.