Skip to content

Commit d2bf585

Browse files
committed
Merge branch 'release/1.33.0'
2 parents 5a883e5 + f8ad909 commit d2bf585

File tree

459 files changed

+7803
-6810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+7803
-6810
lines changed

.github/workflows/docs.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Publish Documentation to sites.ecmwf.int
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, closed]
5+
push:
6+
branches:
7+
- 'develop'
8+
- 'master'
9+
tags:
10+
- '**'
11+
jobs:
12+
build:
13+
if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' || github.event_name == 'push'}}
14+
runs-on: ubuntu-latest
15+
outputs:
16+
artifact-id: ${{ steps.upload-doc.outputs.artifact-id }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.13'
24+
- name: Install python dependencies
25+
run: |
26+
python -m pip install -r docs/requirements.txt
27+
- name: Prepare Doxygen
28+
uses: ecmwf/reusable-workflows/setup-doxygen@main
29+
with:
30+
version: 1.14.0
31+
- name: Build doc
32+
run: |
33+
cd docs
34+
make -j html
35+
- name: Archive documentation
36+
id: upload-doc
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: documentation
40+
path: docs/_build/html
41+
preview-publish:
42+
if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' }}
43+
needs: build
44+
uses: ecmwf/reusable-workflows/.github/workflows/pr-preview-publish.yml@main
45+
with:
46+
artifact-id: ${{ needs.build.outputs.artifact-id }}
47+
space: docs
48+
name: dev-section
49+
path: eckit/pull-requests
50+
link-text: 🌦️ >> Documentation << 🌦️
51+
secrets:
52+
sites-token: ${{ secrets.ECMWF_SITES_DOCS_DEV_SECTION_TOKEN }}
53+
preview-unpublish:
54+
if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' }}
55+
uses: ecmwf/reusable-workflows/.github/workflows/pr-preview-unpublish.yml@main
56+
with:
57+
space: docs
58+
name: dev-section
59+
path: eckit/pull-requests
60+
secrets:
61+
sites-token: ${{ secrets.ECMWF_SITES_DOCS_DEV_SECTION_TOKEN }}
62+
publish:
63+
if: >-
64+
${{ github.event_name == 'push' && (
65+
github.ref_name == 'develop' ||
66+
github.ref_name == 'master' ||
67+
github.ref_type == 'tag'
68+
) }}
69+
needs: build
70+
uses: ecmwf/reusable-workflows/.github/workflows/docs-publish.yml@main
71+
with:
72+
artifact-id: ${{ needs.build.outputs.artifact-id }}
73+
space: docs
74+
name: dev-section
75+
path: eckit
76+
id: ${{ github.ref_name }}
77+
softlink: ${{ github.ref_name == 'master' && 'stable'
78+
|| github.ref_name == 'develop' && 'latest' }}
79+
secrets:
80+
sites-token: ${{ secrets.ECMWF_SITES_DOCS_DEV_SECTION_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ doc/latex
1111
.idea
1212
build/
1313
tests/geo/eckit_geo_cache
14+
_build
1415
*.ccls-cache

CMakeLists.txt

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
########################################################################################################################
1010

1111

12-
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )
12+
cmake_minimum_required( VERSION 3.18 FATAL_ERROR )
1313

1414
find_package( ecbuild 3.7 REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild)
1515

@@ -146,7 +146,7 @@ ecbuild_add_option( FEATURE LZ4
146146

147147
ecbuild_add_option( FEATURE AEC
148148
DESCRIPTION "AEC support for compression"
149-
REQUIRED_PACKAGES AEC )
149+
REQUIRED_PACKAGES "NAME libaec VERSION 1.0.6")
150150

151151
ecbuild_add_option( FEATURE ZIP
152152
DESCRIPTION "ZIP support for compression"
@@ -165,6 +165,12 @@ ecbuild_add_option( FEATURE ECKIT_CODEC
165165

166166
set( eckit_CODEC_STATIC_ASSERT ON CACHE BOOL "eckit::codec static assertions" )
167167

168+
### eckit::spec
169+
170+
ecbuild_add_option( FEATURE ECKIT_SPEC
171+
DEFAULT ON
172+
DESCRIPTION "eckit::spec metadata library" )
173+
168174
### eckit::maths
169175

170176
ecbuild_add_option( FEATURE CONVEX_HULL
@@ -189,21 +195,6 @@ ecbuild_add_option( FEATURE ECKIT_GEO
189195
DEFAULT ON
190196
DESCRIPTION "eckit::geo geometry library" )
191197

192-
ecbuild_add_option( FEATURE GEO_GRID_FESOM
193-
DEFAULT ON
194-
CONDITION eckit_HAVE_ECKIT_GEO AND eckit_HAVE_ECKIT_CODEC AND eckit_HAVE_LZ4
195-
DESCRIPTION "eckit::geo geometry library support for FESOM grids" )
196-
197-
ecbuild_add_option( FEATURE GEO_GRID_ICON
198-
DEFAULT ON
199-
CONDITION eckit_HAVE_ECKIT_GEO AND eckit_HAVE_ECKIT_CODEC AND eckit_HAVE_LZ4
200-
DESCRIPTION "eckit::geo geometry library support for ICON grids" )
201-
202-
ecbuild_add_option( FEATURE GEO_GRID_ORCA
203-
DEFAULT ON
204-
CONDITION eckit_HAVE_ECKIT_GEO AND eckit_HAVE_ECKIT_CODEC AND eckit_HAVE_LZ4
205-
DESCRIPTION "eckit::geo geometry library support for ORCA grids" )
206-
207198
ecbuild_add_option( FEATURE GEO_CACHING
208199
DEFAULT OFF
209200
CONDITION eckit_HAVE_ECKIT_GEO
@@ -225,13 +216,20 @@ ecbuild_add_option( FEATURE GEO_AREA_SHAPEFILE
225216
REQUIRED_PACKAGES shapelib
226217
DESCRIPTION "eckit::geo geometry library support for shapefiles" )
227218

219+
set( ECKIT_GEO_CODEC_GRIDS OFF )
220+
if( eckit_HAVE_ECKIT_CODEC AND eckit_HAVE_LZ4 )
221+
set( ECKIT_GEO_CODEC_GRIDS ON )
222+
endif()
223+
228224
if( eckit_HAVE_GEO_AREA_SHAPEFILE )
229225
if( NOT TARGET shapelib::shp OR NOT TARGET libzip::zip )
230226
message( FATAL_ERROR "eckit::geo geometry library support for shapefiles requires the shapelib::shp and libzip::zip libraries" )
231227
endif()
232228
endif()
233229

234-
set( eckit_GEO_CACHE_PATH "~/.local/share/eckit/geo" )
230+
# (keep paths as strings to avoid normalisation/expansion)
231+
set( eckit_GEO_CACHE_PATH "~/.local/share/eckit/geo" CACHE STRING "eckit::geo cache path default" )
232+
set( eckit_GEO_SHARE_URL_PREFIX "https://sites.ecmwf.int/repository/eckit/geo" CACHE STRING "eckit::geo URL prefix for downloadable assets" )
235233

236234
### LAPACK
237235

@@ -339,6 +337,12 @@ ecbuild_add_option( FEATURE PROJ
339337
DESCRIPTION "support PROJ-based projections"
340338
REQUIRED_PACKAGES "PROJ 9.1.1" )
341339

340+
ecbuild_add_option(
341+
FEATURE DOCS
342+
DEFAULT OFF
343+
DESCRIPTION "Enable documentation generation"
344+
)
345+
342346
### c math library, needed when including "math.h"
343347

344348
find_package( CMath )
@@ -370,8 +374,9 @@ include(cmake/compiler_warnings.cmake) # optionally handle compiler specific war
370374
set( PERSISTENT_NAMESPACE "eckit" CACHE INTERNAL "" ) # needed for generating .b files for persistent support
371375

372376
add_subdirectory( src )
373-
add_subdirectory( bamboo )
374-
add_subdirectory( doc )
377+
if(eckit_HAVE_DOCS)
378+
add_subdirectory(docs)
379+
endif()
375380
add_subdirectory( share )
376381

377382
if( eckit_HAVE_TESTS )

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.32.4
1+
1.33.0

bamboo/CLANG-env.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

bamboo/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

bamboo/GCC-env.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

bamboo/INTEL-env.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

bamboo/MACMLM-env.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

bamboo/MACOSX-env.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)