armbian-build/.github/workflows/build-kernel-pr.yml
Igor Pečovnik 4508246322
Wrong folder for patch (#4091)
We want to build kernels if patches are changes. Any.
2022-08-19 22:30:51 +02:00

46 lines
1.4 KiB
YAML

name: Build Kernels at PR
#
# Generates kernels at PR if their code, patches or config was changed in any way. Packages are uploaded as Github action build artefakts
# Build starts if label is set to "Ready"
#
on:
workflow_dispatch:
pull_request:
types: [opened,synchronize,reopened,ready_for_review,review_requested,labeled]
paths:
- 'config/kernel/**'
- 'config/sources/**'
- 'patch/**'
jobs:
Check:
name: Checking
if: ${{ github.repository_owner == 'Armbian' && contains( github.event.pull_request.labels.*.name, 'Ready :arrow_right:') }}
uses: armbian/scripts/.github/workflows/check-for-changes.yml@master
with:
reference: ${{ github.event.pull_request.head.sha }}
runner: small
Build:
needs: Check
if: ${{ github.repository_owner == 'Armbian' && contains( github.event.pull_request.labels.*.name, 'Desktop :desktop_computer:') }}
uses: armbian/scripts/.github/workflows/build-kernel.yml@master
with:
uploading: "false"
runner: "fast"
reference: ${{ github.event.pull_request.head.sha }}
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }}
GPG_KEY2: ${{ secrets.GPG_KEY2 }}
GPG_PASSPHRASE2: ${{ secrets.GPG_PASSPHRASE2 }}
SCRIPTS_ACCESS_TOKEN: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}