Skip to content

Commit

Permalink
Enable action script for kernel recompilation on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik authored and amazingfate committed Nov 24, 2024
1 parent f18048b commit 40b876c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
@@ -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"
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#
# Normal rules (sorted alphabetically)
#
.*
*.a
*.asn1.[ch]
*.bin
Expand Down

0 comments on commit 40b876c

Please sign in to comment.