packaging-dummy.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ---
  2. # Handles building of binary packages for the agent.
  3. #
  4. # This workflow exists so that we can make these required checks but
  5. # still skip running them on PRs where they are not relevant.
  6. name: Packages
  7. on:
  8. pull_request:
  9. types:
  10. - opened
  11. - reopened
  12. - labeled
  13. - synchronize
  14. paths-ignore: # This MUST be kept in-sync with the paths key for the packaging.yml workflow.
  15. - '**.c'
  16. - '**.cc'
  17. - '**.h'
  18. - '**.hh'
  19. - '**.in'
  20. - 'netdata.spec.in'
  21. - 'configure.ac'
  22. - '**/Makefile*'
  23. - 'Makefile*'
  24. - '.github/workflows/packaging.yml'
  25. - '.github/scripts/gen-matrix-packaging.py'
  26. - '.github/scripts/pkg-test.sh'
  27. - 'build/**'
  28. - 'packaging/*.sh'
  29. - 'packaging/*.checksums'
  30. - 'packaging/*.version'
  31. - 'contrib/debian/**'
  32. - 'aclk/aclk-schemas/'
  33. - 'ml/dlib/'
  34. - 'mqtt_websockets'
  35. - 'web/server/h2o/libh2o'
  36. - '!**.md'
  37. env:
  38. DISABLE_TELEMETRY: 1
  39. REPO_PREFIX: netdata/netdata
  40. concurrency:
  41. group: packages-${{ github.ref }}-${{ github.event_name }}
  42. cancel-in-progress: true
  43. jobs:
  44. matrix:
  45. name: Prepare Build Matrix
  46. runs-on: ubuntu-latest
  47. outputs:
  48. matrix: ${{ steps.set-matrix.outputs.matrix }}
  49. steps:
  50. - name: Checkout
  51. id: checkout
  52. uses: actions/checkout@v3
  53. - name: Prepare tools
  54. id: prepare
  55. run: |
  56. sudo apt-get update && sudo apt-get install -y python3-ruamel.yaml
  57. - name: Read build matrix
  58. id: set-matrix
  59. run: |
  60. if [ "${{ github.event_name }}" = "pull_request" ] && \
  61. [ "${{ !contains(github.event.pull_request.labels.*.name, 'run-ci/packaging') }}" = "true" ]; then
  62. matrix="$(.github/scripts/gen-matrix-packaging.py 1)"
  63. else
  64. matrix="$(.github/scripts/gen-matrix-packaging.py 0)"
  65. fi
  66. echo "Generated matrix: ${matrix}"
  67. echo "matrix=${matrix}" >> "${GITHUB_OUTPUT}"
  68. build:
  69. name: Build
  70. runs-on: ubuntu-latest
  71. env:
  72. DOCKER_CLI_EXPERIMENTAL: enabled
  73. needs:
  74. - matrix
  75. strategy:
  76. matrix: ${{ fromJson(needs.matrix.outputs.matrix) }}
  77. fail-fast: false
  78. steps:
  79. - run: echo 'NOT REQUIRED'