build_and_test_provisioned.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: Build-and-Test-Provisioned # actually tests are not executed
  2. on:
  3. workflow_call:
  4. inputs:
  5. runner_label:
  6. required: true
  7. type: string
  8. run_build:
  9. type: boolean
  10. default: true
  11. sanitizer:
  12. required: false
  13. type: string
  14. extra_compile_flags:
  15. required: false
  16. type: string
  17. checkout_ref:
  18. required: false
  19. type: string
  20. ninja_target:
  21. required: false
  22. type: string
  23. workflow_dispatch:
  24. inputs:
  25. runner_label:
  26. required: true
  27. type: string
  28. run_build:
  29. type: boolean
  30. default: true
  31. sanitizer:
  32. required: false
  33. type: string
  34. extra_compile_flags:
  35. required: false
  36. type: string
  37. checkout_ref:
  38. required: false
  39. type: string
  40. ninja_target:
  41. required: false
  42. type: string
  43. jobs:
  44. main:
  45. name: Build and test
  46. runs-on: [ self-hosted, "${{ inputs.runner_label }}" ]
  47. steps:
  48. - name: Checkout
  49. uses: actions/checkout@v4
  50. with:
  51. ref: ${{ inputs.checkout_ref }}
  52. - name: Build
  53. uses: ./.github/actions/build
  54. if: inputs.run_build
  55. with:
  56. sanitizer: ${{ inputs.sanitizer }}
  57. ccache_remote_path: ${{ vars.REMOTE_CACHE_URL && format('http://{0}{1}', secrets.REMOTE_CACHE_AUTH, vars.REMOTE_CACHE_URL) || ''}}
  58. extra_compile_flags: ${{ inputs.extra_compile_flags }}
  59. ninja_target: ${{ inputs.ninja_target }}