-
-
Notifications
You must be signed in to change notification settings - Fork 248
57 lines (49 loc) · 1.7 KB
/
compile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build Kernels at PR
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
Build:
name: Compile kernel
runs-on: rockchip
if: ${{ github.repository_owner == 'armbian' }}
env:
OCI_TARGET_BASE: "ghcr.io/${{ github.repository }}/" # This is picked up by the Docker launcher automatically
steps:
# Login to ghcr.io, for later uploading rootfs to ghcr.io
- name: Docker Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }} # GitHub username or org
password: ${{ secrets.GITHUB_TOKEN }} # GitHub actions builtin token. repo has to have pkg access.
- 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: |
rm -rf output/debs/*
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_USE_CACHE="yes" \
BOARD=orangepi5 \
BRANCH=legacy \
ENABLE_EXTENSIONS="pull-request"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux-rockchip-legacy
path: output/debs/*.deb
retention-days: 5