premerge: qualcomm-linux/kernel-topics - PR #1742 #3453
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: pre_merge | |
| run-name: "${{ format('premerge: {0} - PR #{1}', inputs.repo, inputs.pr) }}" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| pr: | |
| description: Pull request number | |
| type: string | |
| required: true | |
| sha: | |
| description: Head sha of the PR | |
| type: string | |
| required: true | |
| ref: | |
| description: Target branch | |
| type: string | |
| required: true | |
| repo: | |
| description: Target repository | |
| type: string | |
| required: true | |
| jobs: | |
| init-status: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Initial workflow status | |
| uses: qualcomm-linux/kernel-config/.github/actions/workflow_status@main | |
| with: | |
| sha: ${{ inputs.sha }} | |
| action_mode: start | |
| check_name: pre-merge | |
| repo: ${{ inputs.repo }} | |
| GH_TOKEN: ${{ secrets.PAT }} | |
| loading: | |
| needs: [init-status] | |
| uses: qualcomm-linux/kernel-config/.github/workflows/loading.yml@main | |
| secrets: inherit | |
| with: | |
| branch: ${{ inputs.ref }} | |
| build: | |
| needs: [loading, init-status] | |
| uses: qualcomm-linux/kernel-config/.github/workflows/build.yml@main | |
| secrets: inherit | |
| with: | |
| docker_image: ${{ vars.TECH_TEAM_NAMESPACE }}/kmake-image:${{ vars.KMAKE_IMAGE_VERSION }} | |
| pr_number: ${{ inputs.pr }} | |
| branch: ${{ inputs.ref }} | |
| repo: ${{ inputs.repo }} | |
| rootfs_matrix: ${{ needs.loading.outputs.rootfs_matrix }} | |
| variant: default | |
| build_rt: | |
| needs: [loading, init-status] | |
| uses: qualcomm-linux/kernel-config/.github/workflows/build_rt.yml@main | |
| secrets: inherit | |
| with: | |
| docker_image: ${{ vars.TECH_TEAM_NAMESPACE }}/kmake-image:${{ vars.KMAKE_IMAGE_VERSION }} | |
| pr_number: ${{ inputs.pr }} | |
| branch: ${{ inputs.ref }} | |
| repo: ${{ inputs.repo }} | |
| variant: RT | |
| check_run: | |
| runs-on: ubuntu-latest | |
| needs: [init-status, loading, build] | |
| steps: | |
| - name: Post check run | |
| uses: qualcomm-linux/kernel-config/.github/actions/check_run@main | |
| with: | |
| sha: ${{ inputs.sha }} | |
| repo: ${{ inputs.repo }} | |
| s3_location: ${{ needs.build.outputs.s3_location }} | |
| APPID: ${{ secrets.APPID }} | |
| PVK: ${{ secrets.PVK }} | |
| test: | |
| if: inputs.repo == 'qualcomm-linux/kernel' | |
| needs: [init-status, loading, build] | |
| uses: qualcomm-linux/kernel-config/.github/workflows/test.yml@main | |
| secrets: inherit | |
| with: | |
| docker_image: ${{vars.TECH_TEAM_NAMESPACE}}/kmake-image:${{vars.KMAKE_IMAGE_VERSION}} | |
| rootfs_matrix: ${{ needs.loading.outputs.rootfs_matrix }} | |
| kernel_version: ${{ needs.build.outputs.kernel_version }} | |
| commit_SHA: ${{ inputs.sha }} | |
| branch: ${{ inputs.ref }} | |
| pr_number: ${{ inputs.pr }} | |
| flash_type: "" | |
| build_type: "kbdev" | |
| comment: | |
| needs: [test] | |
| uses: qualcomm-linux/kernel-config/.github/workflows/comment.yml@main | |
| if: always() && needs.test.result != 'skipped' | |
| secrets: inherit | |
| with: | |
| pr_number: ${{ inputs.pr }} | |
| sha: ${{ inputs.sha }} | |
| repo: ${{ inputs.repo }} | |
| final-status: | |
| runs-on: ubuntu-latest | |
| needs: [init-status, loading, build, test, comment] | |
| if: always() | |
| steps: | |
| - name: Final workflow status | |
| uses: qualcomm-linux/kernel-config/.github/actions/workflow_status@main | |
| with: | |
| sha: ${{ inputs.sha }} | |
| action_mode: ${{ needs.test.result != 'skipped' && needs.test.result || needs.build.result }} | |
| check_name: pre-merge | |
| repo: ${{ inputs.repo }} | |
| GH_TOKEN: ${{ secrets.PAT }} |