37
This commit is contained in:
@@ -2,13 +2,49 @@ name: Raspberry Pi Linux Kernel [Build]
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
BRANCH:
|
||||||
|
required: true
|
||||||
VERSION:
|
VERSION:
|
||||||
required: true
|
required: true
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
job:
|
||||||
name: Raspberry Pi Linux Build
|
name: Raspberry Pi Linux Build
|
||||||
runs-on: cicd.any
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- defconfig: bcm2711_defconfig
|
||||||
|
cicd: cicd.bookworm
|
||||||
|
codename: bookworm
|
||||||
|
gcc: aarch64-linux-gnu-gcc-12
|
||||||
|
image: rpt
|
||||||
|
revision: v8
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
steps:
|
steps:
|
||||||
- name: Repository [Clone]
|
- name: Repository [Clone]
|
||||||
|
uses: https://github.com/actions/checkout@v6
|
||||||
|
- name: Environment
|
||||||
|
id: environment
|
||||||
run: |
|
run: |
|
||||||
/usr/bin/echo "${{ inputs.version }}"
|
UNITS=$(/usr/bin/nproc --all)
|
||||||
|
/usr/bin/echo "UNITS=${UNITS}" >> "${GITHUB_OUTPUT}"
|
||||||
|
/usr/bin/echo "Set Variable 'UNITS' to '${UNITS}'"
|
||||||
|
- name: Linux Sources [Artifact Download]
|
||||||
|
uses: https://gitea.com/actions/download-artifact@v3-node20
|
||||||
|
with:
|
||||||
|
name: linux-sources-${{ inputs.version }}.tar.gz
|
||||||
|
- name: Linux Sources [Extract]
|
||||||
|
run: |
|
||||||
|
/usr/bin/install --directory --verbose './linux-sources'
|
||||||
|
/usr/bin/tar --directory="./linux-sources" --extract --gzip --file="./linux-sources-${{ inputs.version }}.tar.gz" --verbose
|
||||||
|
- name: Linux Sources [Prepare]
|
||||||
|
if: matrix.defconfig != 'bcm2711_defconfig' && matrix.defconfig != 'bcm2712_defconfig'
|
||||||
|
env:
|
||||||
|
DEFCONFIG: ${{ matrix.defconfig }}
|
||||||
|
run: |
|
||||||
|
/usr/bin/mv --verbose "./config/${{ matrix.defconfig }}-${{ inputs.branch }}" "./linux-sources/arch/arm64/configs/${DEFCONFIG%%-*}"
|
||||||
|
- name: Linux Sources [Configuration]
|
||||||
|
run: |
|
||||||
|
/usr/bin/make --directory='./linux-sources' --jobs="${{ steps.environment.outputs.units }}" CC="${{ matrix.gcc }}" "${{ matrix.defconfig }}"
|
||||||
|
./linux-sources/scripts/config --file './linux-sources/.config' --set-str CONFIG_BUILD_SALT +${{ matrix.image }}-rpi-${{ matrix.revision }}
|
||||||
|
./linux-sources/scripts/config --file './linux-sources/.config' --set-str CONFIG_LD_ORPHAN_WARN_LEVEL error
|
||||||
|
./linux-sources/scripts/config --file './linux-sources/.config' --set-str CONFIG_LOCALVERSION +${{ matrix.image }}-rpi-${{ matrix.revision }}
|
||||||
|
|||||||
@@ -15,4 +15,5 @@ jobs:
|
|||||||
- sources
|
- sources
|
||||||
uses: ./.gitea/workflows/build.yml
|
uses: ./.gitea/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
VERSION: ${{ needs.sources.outputs.version }}
|
BRANCH: ${{ env.branch }}
|
||||||
|
VERSION: ${{ needs.sources.outputs.version }}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ on:
|
|||||||
inputs:
|
inputs:
|
||||||
BRANCH:
|
BRANCH:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
|
||||||
outputs:
|
outputs:
|
||||||
VERSION:
|
VERSION:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
Reference in New Issue
Block a user