forked from armbian/linux-rockchip
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable action script for kernel recompilation on PR
- Loading branch information
1 parent
f18048b
commit 40b876c
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
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" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
# | ||
# Normal rules (sorted alphabetically) | ||
# | ||
.* | ||
*.a | ||
*.asn1.[ch] | ||
*.bin | ||
|