Skip to content

Commit 6001564

Browse files
committed
Add example wf
1 parent c369ab5 commit 6001564

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build and Test Eckit
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- "master"
9+
- "develop"
10+
tags-ignore:
11+
- "**"
12+
13+
jobs:
14+
prepare-deps:
15+
strategy:
16+
matrix:
17+
runner:
18+
- [self-hosted, platform-builder-debian-11]
19+
- [self-hosted, platform-builder-ubuntu-22.04]
20+
- [self-hosted, platform-builder-centos-7.9]
21+
- [self-hosted, platform-builder-rocky-8.6]
22+
- [self-hosted, platform-builder-fedora-37]
23+
runs-on: ${{ matrix.runner }}
24+
steps:
25+
- name: Get ecbuild
26+
uses: actions/checkout@v5
27+
with:
28+
repository: ecmwf/ecbuild
29+
ref: develop
30+
path: ecbuild
31+
- name: Get cxx-dependencies
32+
uses: actions/checkout@v5
33+
with:
34+
repository: ecmwf/cxx-dependencies
35+
ref: master
36+
path: cxx-dependencies-src
37+
token: ${{ secrets.GH_REPO_READ_TOKEN }}
38+
submodules: recursive
39+
- name: Install dependencies
40+
run: |
41+
mkdir cxx-dependencies-build
42+
BUILD_PATH=cxx-dependencies-build INSTALL_PREFIX=dependencies cxx-dependencies-src/build.sh
43+
- name: Get eckit
44+
uses: actions/checkout@v5
45+
with:
46+
repository: ecmwf/eckit
47+
ref: develop
48+
path: eckit-src
49+
- name: Install eckit
50+
run: |
51+
mkdir eckit-build
52+
cmake \
53+
-B eckit-build \
54+
-S eckit-src \
55+
-GNinja \
56+
-DCMAKE_INSTALL_PREFIX=dependencies \
57+
-DCMAKE_PREFIX_PATH=dependencies \
58+
-DCMAKE_BUILD_TYPE=RelWithDebInfo
59+
cmake --build eckit-build -j -t install

0 commit comments

Comments
 (0)