Add nightly build workflow

Add cpack options
This commit is contained in:
Dusan Figala 2023-08-01 14:16:18 +02:00 committed by shahramn
parent 0d3fae200c
commit 34ffb5b28e
1 changed files with 17 additions and 1 deletions

View File

@ -5,7 +5,7 @@ on:
# Run at 20:00 UTC every day (on default branch)
schedule:
- cron: "0 20 * * *"
- cron: '0 20 * * *'
jobs:
test:
@ -15,10 +15,26 @@ jobs:
nightly_test: true
secrets: inherit
deploy:
needs: [test]
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 }}
notify:
runs-on: ubuntu-latest
needs:
- test
- deploy
if: always()
steps:
- name: Trigger Teams notification