Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
simondsmart committed Dec 12, 2023
2 parents 32bb190 + b487e8e commit 808c9a9
Show file tree
Hide file tree
Showing 12 changed files with 119 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .github/ci-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies: |
ecmwf/ecbuild
ecmwf/eckit
dependency_branch: develop
parallelism_factor: 8
7 changes: 7 additions & 0 deletions .github/ci-hpc-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build:
modules:
- ninja
dependencies:
- ecmwf/ecbuild@develop
- ecmwf/eckit@develop
parallel: 64
11 changes: 11 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: cd

on:
push:
tags:
- '**'

jobs:
deploy:
uses: ecmwf-actions/reusable-workflows/.github/workflows/create-package.yml@v2
secrets: inherit
48 changes: 26 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
name: ci

# Controls when the workflow will run
on:

# Trigger the workflow on all pushes, except on tag creation
# Trigger the workflow on push to master or develop, except tag creation
push:
branches:
- '**'
- 'master'
- 'develop'
tags-ignore:
- '**'
- '**'

# Trigger the workflow on all pull requests
# Trigger the workflow on pull request
pull_request: ~

# Allow workflow to be dispatched on demand
# Trigger the workflow manually
workflow_dispatch: ~

jobs:
# Trigger after public PR approved for CI
pull_request_target:
types: [labeled]

# Calls a reusable CI workflow to build & test the current repository.
# It will pull in all needed dependencies and produce a code coverage report on success.
ci:
name: ci
uses: ecmwf-actions/reusable-workflows/.github/workflows/ci.yml@v1
jobs:
# Run CI including downstream packages on self-hosted runners
downstream-ci:
name: downstream-ci
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci.yml@main
with:
odc: ecmwf/odc@${{ github.event.pull_request.head.sha || github.sha }}
codecov_upload: true
notify_teams: true
build_package_inputs: |
self_coverage: true
dependencies: |
ecmwf/ecbuild
ecmwf/eckit
dependency_branch: develop
secrets:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
secrets: inherit

# Build downstream packages on HPC
downstream-ci-hpc:
name: downstream-ci-hpc
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main
with:
odc: ecmwf/odc@${{ github.event.pull_request.head.sha || github.sha }}
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/label-public-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Manage labels of pull requests that originate from forks
name: label-public-pr

on:
pull_request_target:
types: [opened, synchronize]

jobs:
label:
uses: ecmwf-actions/reusable-workflows/.github/workflows/label-pr.yml@v2
15 changes: 15 additions & 0 deletions .github/workflows/notify-new-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Notify new issue

on:
issues:
types:
- "opened"

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify new issue
uses: ecmwf-actions/notify-teams-issue@v1
with:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
15 changes: 15 additions & 0 deletions .github/workflows/notify-new-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Notify new PR

on:
pull_request:
types:
- "opened"

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify new PR
uses: ecmwf-actions/notify-teams-pr@v1
with:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
24 changes: 24 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: sync

# Controls when the workflow will run
on:
# Trigger the workflow on all pushes
push:
branches:
- "**"
tags:
- "**"

# Trigger the workflow when a branch or tag is deleted
delete: ~

jobs:
# Calls a reusable CI workflow to sync the current with a remote repository.
# It will correctly handle addition of any new and removal of existing Git objects.
sync:
name: sync
uses: ecmwf-actions/reusable-workflows/.github/workflows/sync.yml@v2
secrets:
target_repository: odb/odc
target_username: ClonedDuck
target_token: ${{ secrets.BITBUCKET_PAT }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ find_package( ecbuild 3.4 REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CUR

project( odc LANGUAGES C CXX )

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

########################################################################################################################
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.6
1.5.0
6 changes: 3 additions & 3 deletions src/fortran/legacy_fortran_api_examples.f90
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ subroutine example_fortran_api_append
one_row(offsets(1)) = i
one_row(offsets(2)) = i
one_row(offsets(3)) = 5
one_row(offsets(4):offsets(4)+3) = transfer(wigos, one_row(offsets(4):offsets(4)+3))
one_row(offsets(4):offsets(4)+3) = transfer(wigos(1:32), one_row(offsets(4):offsets(4)+3))
one_row(offsets(5)) = transfer(expver, one_row(5))
one_row(offsets(6)) = 5
cerr = odb_write_set_next_row(odb_it, one_row, c_ncolumns)
Expand Down Expand Up @@ -135,7 +135,7 @@ subroutine example_fortran_api_append
one_row(offsets(1)) = i
one_row(offsets(2)) = i
one_row(offsets(3)) = 5
one_row(offsets(4):offsets(4)+3) = transfer(wigos, one_row(offsets(4):offsets(4)+3))
one_row(offsets(4):offsets(4)+3) = transfer(wigos(1:32), one_row(offsets(4):offsets(4)+3))
one_row(offsets(5)) = transfer(expver, one_row(5))
one_row(offsets(6)) = 5
cerr = odb_write_set_next_row(odb_it, one_row, c_ncolumns)
Expand Down Expand Up @@ -197,7 +197,7 @@ subroutine example_fortran_api_setup
one_row(offsets(1)) = i
one_row(offsets(2)) = i
one_row(offsets(3)) = 5
one_row(offsets(4):offsets(4)+3) = transfer(wigos, one_row(offsets(4):offsets(4)+3))
one_row(offsets(4):offsets(4)+3) = transfer(wigos(1:32), one_row(offsets(4):offsets(4)+3))
one_row(offsets(5)) = transfer(expver, one_row(5))
one_row(offsets(6)) = 5
cerr = odb_write_set_next_row(odb_it, one_row, c_ncolumns)
Expand Down
2 changes: 1 addition & 1 deletion src/odc/api/StridedData.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef odc_api_StridedData_H
#define odc_api_StridedData_H

#include <cstddef>
#include <cstdint>
#include <string.h>
#include <algorithm>

Expand Down

0 comments on commit 808c9a9

Please sign in to comment.