Files
scripts/.github/workflows/test6.yml
dependabot[bot] dac0bc730c Bump actions/checkout from 3 to 4 (#56)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 09:20:38 +01:00

49 lines
1.5 KiB
YAML

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@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }} # 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@v4
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"