label-target.yml 965 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # ci:target:x86:64 is going to trigger CI target check jobs for x86/64 target
  2. name: Build check target specified in labels
  3. on:
  4. pull_request:
  5. types:
  6. - labeled
  7. jobs:
  8. set_target:
  9. if: startsWith(github.event.label.name, 'ci:target:')
  10. name: Set target
  11. runs-on: ubuntu-latest
  12. outputs:
  13. target: ${{ steps.set_target.outputs.target }}
  14. steps:
  15. - name: Set target
  16. id: set_target
  17. env:
  18. CI_EVENT_LABEL_NAME: ${{ github.event.label.name }}
  19. run: |
  20. echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/target="\1\/\2"/p' | tee --append $GITHUB_OUTPUT
  21. build_target:
  22. name: Build target
  23. needs: set_target
  24. permissions:
  25. contents: read
  26. packages: read
  27. uses: ./.github/workflows/build.yml
  28. with:
  29. target: ${{ needs.set_target.outputs.target }}
  30. build_full: true
  31. build_all_kmods: true
  32. build_all_boards: true
  33. build_all_modules: true