2023-03-31 13:22:43 +00:00
|
|
|
name: nightly
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch: ~
|
|
|
|
|
|
|
|
# Run at 20:00 UTC every day (on default branch)
|
|
|
|
schedule:
|
2024-07-25 10:17:49 +00:00
|
|
|
- cron: "0 20 * * *"
|
2023-03-31 13:22:43 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-08-02 14:44:50 +00:00
|
|
|
test-hpc:
|
2024-07-25 10:17:49 +00:00
|
|
|
runs-on: [self-hosted, linux, hpc]
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
|
|
|
|
steps:
|
|
|
|
- uses: ecmwf-actions/reusable-workflows/ci-hpc@v2
|
|
|
|
with:
|
|
|
|
github_user: ${{ secrets.BUILD_PACKAGE_HPC_GITHUB_USER }}
|
|
|
|
github_token: ${{ secrets.GH_REPO_READ_TOKEN }}
|
|
|
|
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
|
|
|
|
repository: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
|
|
|
|
build_config: .github/nightly-ci-hpc-config.yml
|
2023-05-05 10:45:10 +00:00
|
|
|
|
2023-08-02 14:44:50 +00:00
|
|
|
test-macos:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
name:
|
|
|
|
- clang@macos-13-arm
|
|
|
|
- clang@macos-13-x86
|
|
|
|
include:
|
|
|
|
- name: clang@macos-13-arm
|
|
|
|
labels: [self-hosted, platform-builder-macosx-13.4.1-arm64]
|
|
|
|
os: macos-13-arm
|
|
|
|
compiler: clang
|
|
|
|
compiler_cc: clang
|
|
|
|
compiler_cxx: clang++
|
|
|
|
compiler_fc: gfortran
|
|
|
|
- name: clang@macos-13-x86
|
|
|
|
labels: [self-hosted, platform-builder-macosx-13.4.1-x86_64]
|
|
|
|
os: macos-13-x86
|
|
|
|
compiler: clang
|
|
|
|
compiler_cc: clang
|
|
|
|
compiler_cxx: clang++
|
|
|
|
compiler_fc: gfortran
|
|
|
|
runs-on: ${{ matrix.labels }}
|
|
|
|
env:
|
|
|
|
DEP_TREE: |
|
|
|
|
ecbuild: ~
|
|
|
|
libaec:
|
|
|
|
deps:
|
|
|
|
- ecbuild
|
|
|
|
eccodes:
|
|
|
|
deps:
|
|
|
|
- libaec
|
|
|
|
- ecbuild
|
|
|
|
steps:
|
|
|
|
- uses: ecmwf-actions/reusable-workflows/build-package-with-config@v2
|
|
|
|
with:
|
|
|
|
repository: ecmwf/eccodes@${{ github.sha }}
|
|
|
|
build_config: .github/ci-config.yml
|
|
|
|
|
2023-08-01 12:16:18 +00:00
|
|
|
deploy:
|
2023-08-02 14:44:50 +00:00
|
|
|
needs: [test-hpc, test-macos]
|
2023-08-01 12:16:18 +00:00
|
|
|
uses: ecmwf-actions/reusable-workflows/.github/workflows/create-package.yml@v2
|
|
|
|
with:
|
|
|
|
skip_checks: true
|
|
|
|
cpack_options_rpm: -D CPACK_PACKAGE_FILE_NAME=eccodes-nightly-Linux-x86_64
|
|
|
|
cpack_options_deb: -D CPACK_PACKAGE_VERSION=nightly
|
|
|
|
secrets:
|
|
|
|
url_debian_11: ${{ secrets.NEXUS_TEST_REPO_NIGHTLY_URL_DEBIAN_11 }}
|
|
|
|
token_debian_11: ${{ secrets.NEXUS_TEST_REPO_UPLOAD_TOKEN }}
|
|
|
|
url_centos_7: ${{ secrets.NEXUS_TEST_REPO_NIGHTLY_URL_CENTOS_7 }}
|
|
|
|
token_centos_7: ${{ secrets.NEXUS_TEST_REPO_UPLOAD_TOKEN }}
|
|
|
|
url_rocky_8: ${{ secrets.NEXUS_TEST_REPO_NIGHTLY_URL_ROCKY_8 }}
|
|
|
|
token_rocky_8: ${{ secrets.NEXUS_TEST_REPO_UPLOAD_TOKEN }}
|
|
|
|
|
2023-05-05 10:45:10 +00:00
|
|
|
notify:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
2023-08-02 14:44:50 +00:00
|
|
|
- test-hpc
|
|
|
|
- test-macos
|
2023-08-01 12:16:18 +00:00
|
|
|
- deploy
|
2023-05-05 10:45:10 +00:00
|
|
|
if: always()
|
|
|
|
steps:
|
|
|
|
- name: Trigger Teams notification
|
|
|
|
uses: ecmwf-actions/notify-teams@v1
|
|
|
|
with:
|
|
|
|
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
|
|
|
|
needs_context: ${{ toJSON(needs) }}
|
2023-05-09 08:18:32 +00:00
|
|
|
workflow_id: nightly.yml
|