From aa8682b1579a0b050f03e84dfd90e95b923b6c3c Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 13 Jun 2023 12:35:14 +0200 Subject: [PATCH] Enable action script for kernel recompilation on PR --- .github/workflows/compile.yaml | 37 ++++++++++++++++++++++++++++++++++ .gitignore | 1 - 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/compile.yaml diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml new file mode 100644 index 000000000000..d696a01dc250 --- /dev/null +++ b/.github/workflows/compile.yaml @@ -0,0 +1,37 @@ +name: Build Kernels at PR + +on: + pull_request: + types: [opened, reopened, edited, synchronize] + +jobs: + + Build: + name: Compile kernel + runs-on: rockchip + if: ${{ github.repository_owner == 'armbian' }} + steps: + + - name: Checkout build repo + uses: actions/checkout@v3 + with: + repository: armbian/build + ref: main + fetch-depth: 1 + clean: false + + - name: Build Kernel at ${{ github.event.pull_request.head.sha }} + id: kernel + run: | + mkdir -p userpatches/extensions/ + cat <<- EOF > userpatches/extensions/pull-request.sh + function post_family_config__force_commit_for_rk3588() { + KERNELBRANCH="commit:${{ github.event.pull_request.head.sha }}" + } + EOF + bash ./compile.sh kernel \ + SHARE_LOG=yes \ + ARTIFACT_IGNORE_CACHE="yes" \ + BOARD=orangepi5 \ + BRANCH=legacy \ + ENABLE_EXTENSIONS="pull-request" diff --git a/.gitignore b/.gitignore index 1ccfbfbe70ff..3e92f42f9f2c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ # # Normal rules (sorted alphabetically) # -.* *.a *.asn1.[ch] *.bin