Skip to content

enable pull request checking workflow for 6.6-velinux branch #7

enable pull request checking workflow for 6.6-velinux branch

enable pull request checking workflow for 6.6-velinux branch #7

Workflow file for this run

# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2024 ByteDance.
name: Pull Request Check
on:
pull_request:
branches:
- 6.6-velinux
env:
COMMIT_RANGE: "origin/${{ github.base_ref }}..HEAD"
DOCKER_IMAGE_NAME: "kernel-builder"
jobs:
check-format:
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2000
ssh-key: ${{ secrets.SSH_KEY }}
set-safe-directory: true
- name: FetchRefs
uses: ./.github/actions/fetch-refs
with:
depth: 2000
- name: CheckFormat
run: ./.github/scripts/checkpatch ${{ env.COMMIT_RANGE }}
search-fixes:
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2000
ssh-key: ${{ secrets.SSH_KEY }}
set-safe-directory: true
- name: FetchRefs
uses: ./.github/actions/fetch-refs
with:
depth: 2000
- name: SearchFixes
run: |
git remote add upstream https://github.com/torvalds/linux.git || true
git fetch upstream master -ap
./.github/scripts/git-check-backports -s -r ${{ env.COMMIT_RANGE }} -u upstream/master
test-kernel:
runs-on: [self-hosted]
needs: [check-format, search-fixes]
strategy:
fail-fast: true
matrix:
arch: [x86_64]
distro_code: [buster]
test_suite: [ltp]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
ssh-key: ${{ secrets.SSH_KEY }}
set-safe-directory: true
- name: BuildDockerImage
uses: ./.github/actions/build-docker-image
with:
docker-image-name: ${{ env.DOCKER_IMAGE_NAME }}
arch: ${{ matrix.arch }}
distro-code: ${{ matrix.distro_code }}
- name: BuildKernel
uses: ./.github/actions/build-kernel
with:
docker-image-name: ${{ env.DOCKER_IMAGE_NAME }}
arch: ${{ matrix.arch }}
distro-code: ${{ matrix.distro_code }}
nproc: 32
- name: BuildOSImage
uses: ./.github/actions/build-os-image
with:
arch: ${{ matrix.arch }}
distro-code: ${{ matrix.distro_code }}
- name: TestKernel
uses: ./.github/actions/test-kernel
with:
arch: ${{ matrix.arch }}
distro-code: ${{ matrix.distro_code }}
test-suite: ${{ matrix.test_suite }}