Propagate FA3 build fix: rename #include-d .cu files to .cuh to avoid double-compilation
#514
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Comment Build Bot | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| actions: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| handle-comment: | |
| if: ${{ github.event.issue.pull_request }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| fetch-depth: 1 | |
| - name: Fetch PR head for metadata | |
| # Make the PR commit available so the bot can read its build.toml (data only). | |
| run: git fetch --depth=1 origin "refs/pull/${{ github.event.issue.number }}/head" | |
| - name: Handle /kernel-bot command | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| COMMENT_BODY: ${{ github.event.comment.body }} | |
| COMMENT_ID: ${{ github.event.comment.id }} | |
| COMMENT_ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| COMMENT_AUTHOR: ${{ github.event.comment.user.login }} | |
| COMMENT_AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }} | |
| COMMENT_SENDER_TYPE: ${{ github.event.sender.type }} | |
| COMMENT_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
| run: | | |
| set -eu | |
| if [ "${#COMMENT_BODY}" -gt 1024 ]; then | |
| echo "Ignoring oversized comment payload." | |
| exit 0 | |
| fi | |
| case "$COMMENT_BODY" in | |
| /kernel-bot*) ;; | |
| *) | |
| echo "Ignoring non /kernel-bot comment." | |
| exit 0 | |
| ;; | |
| esac | |
| if ! printf '%s' "$COMMENT_BODY" | grep -Eq '^/kernel-bot[][ A-Za-z0-9_,./-]*$'; then | |
| echo "Ignoring /kernel-bot comment with unsupported characters." | |
| exit 0 | |
| fi | |
| if [[ "$COMMENT_AUTHOR_ASSOCIATION" != "MEMBER" && "$COMMENT_AUTHOR_ASSOCIATION" != "OWNER" && "$COMMENT_AUTHOR_ASSOCIATION" != "COLLABORATOR" ]]; then | |
| echo "Unauthorized: Only members, owners, and collaborators can use /kernel-bot." | |
| exit 0 | |
| fi | |
| python3 .github/scripts/pr_comment_kernel_bot.py |