39
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
name: Raspberry Pi Linux Kernel [Build]
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
VERSION:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
jobs:
|
|
||||||
job:
|
|
||||||
name: Raspberry Pi Linux Build
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- kernel: bcm2711_defconfig
|
|
||||||
runner: cicd.bookworm
|
|
||||||
- kernel: bcm2712_defconfig
|
|
||||||
runner: cicd.bookworm
|
|
||||||
- kernel: bcm2712_pve_defconfig
|
|
||||||
runner: cicd.bookworm
|
|
||||||
runs-on: ${{ matrix.runner }}
|
|
||||||
steps:
|
|
||||||
- name: Repository [Clone]
|
|
||||||
run: |
|
|
||||||
/usr/bin/echo "${{ inputs.version }}"
|
|
||||||
@@ -4,6 +4,8 @@ on:
|
|||||||
inputs:
|
inputs:
|
||||||
BRANCH:
|
BRANCH:
|
||||||
required: true
|
required: true
|
||||||
|
META:
|
||||||
|
required: true
|
||||||
VERSION:
|
VERSION:
|
||||||
required: true
|
required: true
|
||||||
jobs:
|
jobs:
|
||||||
@@ -48,3 +50,138 @@ jobs:
|
|||||||
./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_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_LD_ORPHAN_WARN_LEVEL error
|
||||||
./linux-sources/scripts/config --file './linux-sources/.config' --set-str CONFIG_LOCALVERSION +${{ matrix.image }}-rpi-${{ matrix.revision }}
|
./linux-sources/scripts/config --file './linux-sources/.config' --set-str CONFIG_LOCALVERSION +${{ matrix.image }}-rpi-${{ matrix.revision }}
|
||||||
|
- name: Linux Sources [Build]
|
||||||
|
run: |
|
||||||
|
/usr/bin/make --directory='./linux-sources' --jobs="${{ steps.environment.outputs.units }}" CC="${{ matrix.gcc }}" LOCALVERSION='' Image.gz modules dtbs
|
||||||
|
- name: Linux Sources Debian Packages [Build]
|
||||||
|
run: |
|
||||||
|
/usr/bin/make --directory='./linux-sources' --jobs="${{ steps.environment.outputs.units }}" CC="${{ matrix.gcc }}" LOCALVERSION='' bindeb-pkg
|
||||||
|
|
||||||
|
- name: Linux Image [Build]
|
||||||
|
run: |
|
||||||
|
/usr/bin/mv --verbose './linux-image' "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_CODENAME/${{ matrix.codename }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/chmod --verbose '0755' "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/chmod --verbose '0755' "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postrm"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postrm"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postrm"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postrm"
|
||||||
|
/usr/bin/chmod --verbose '0755' "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/preinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/preinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/preinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/preinst"
|
||||||
|
/usr/bin/chmod --verbose '0755' "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/prerm"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/prerm"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/prerm"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/prerm"
|
||||||
|
/usr/bin/mv --verbose "./linux-sources/debian/linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/boot" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/boot"
|
||||||
|
/usr/bin/mv --verbose "./linux-sources/debian/linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/lib" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/lib"
|
||||||
|
/usr/bin/install --directory --verbose "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/usr"
|
||||||
|
/usr/bin/mv --verbose "./linux-sources/debian/linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/usr/lib" "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}}/usr/lib"
|
||||||
|
/usr/bin/mv --verbose './linux-sources/arch/arm64/boot/dts/overlays/README' "./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/usr/lib/linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/overlays/README"
|
||||||
|
- name: Linux Image [Archive]
|
||||||
|
run: |
|
||||||
|
/usr/bin/tar --create --directory="./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}" --file="./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz" --gzip '.' --verbose
|
||||||
|
- name: Linux Image [Artifact Upload]
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
path: ./linux-image-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
overwrite: true
|
||||||
|
archive: false
|
||||||
|
- name: Linux Image Meta [Build]
|
||||||
|
if: inputs.meta == 'true'
|
||||||
|
run: |
|
||||||
|
/usr/bin/mv --verbose './linux-image-meta' "./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_CODENAME/${{ matrix.codename }}/g" "./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
- name: Linux Image Meta [Archive]
|
||||||
|
if: inputs.meta == 'true'
|
||||||
|
run: |
|
||||||
|
/usr/bin/tar --create --directory="./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}" --file="./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz" --gzip '.' --verbose
|
||||||
|
- name: Linux Image Meta [Artifact Upload]
|
||||||
|
if: inputs.meta == 'true'
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
path: ./linux-image-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
overwrite: true
|
||||||
|
archive: false
|
||||||
|
- name: Linux Headers [Build]
|
||||||
|
run: |
|
||||||
|
/usr/bin/mv --verbose './linux-headers' "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_CODENAME/${{ matrix.codename }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/chmod --verbose '0755' "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/postinst"
|
||||||
|
/usr/bin/mv --verbose "./linux-sources/debian/linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/lib" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/lib"
|
||||||
|
/usr/bin/install --directory --verbose "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/usr"
|
||||||
|
/usr/bin/mv --verbose "./linux-sources/debian/linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/usr/src" "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/usr/src"
|
||||||
|
/usr/bin/mv --verbose './linux-sources/.config' "./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/usr/src/linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}/.config"
|
||||||
|
- name: Linux Headers [Archive]
|
||||||
|
run: |
|
||||||
|
/usr/bin/tar --create --directory="./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}" --file="./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz" --gzip '.' --verbose
|
||||||
|
- name: Linux Headers [Artifact Upload]
|
||||||
|
uses: https://github.com/christopherhx/gitea-upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
path: ./linux-headers-${{ inputs.version }}+${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
overwrite: true
|
||||||
|
archive: false
|
||||||
|
- name: Linux Headers Meta [Build]
|
||||||
|
if: inputs.meta == 'true'
|
||||||
|
run: |
|
||||||
|
/usr/bin/mv --verbose './linux-headers-meta' "./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_CODENAME/${{ matrix.codename }}/g" "./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_IMAGE/${{ matrix.image }}/g" "./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_REVISION/${{ matrix.revision }}/g" "./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION/${{ inputs.version }}/g" "./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
- name: Linux Headers Meta [Archive]
|
||||||
|
if: inputs.meta == 'true'
|
||||||
|
run: |
|
||||||
|
/usr/bin/tar --create --directory="./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}" --file="./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz" --gzip '.' --verbose
|
||||||
|
- name: Linux Headers Meta [Artifact Upload]
|
||||||
|
if: inputs.meta == 'true'
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
path: ./linux-headers-${{ matrix.image }}-rpi-${{ matrix.revision }}_${{ matrix.codename }}.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
overwrite: true
|
||||||
|
archive: false
|
||||||
|
- name: Linux libc Development [Build]
|
||||||
|
if: inputs.meta == 'true' && matrix.defconfig == 'bcm2711_defconfig'
|
||||||
|
run: |
|
||||||
|
/usr/bin/mv --verbose './linux-libc-dev' "./linux-libc-dev_${{ matrix.codename }}"
|
||||||
|
/usr/bin/install --directory --verbose "./linux-libc-dev_${{ matrix.codename }}/usr"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_CODENAME/${{ matrix.codename }}/g" "./linux-libc-dev_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/sed --in-place --expression="s/CICD_VERSION//${{ inputs.version }}/g" "./linux-libc-dev_${{ matrix.codename }}/DEBIAN/control"
|
||||||
|
/usr/bin/mv --verbose './linux-sources/debian/linux-libc-dev/usr/include' "./linux-libc-dev_${{ matrix.codename }}/usr/include"
|
||||||
|
- name: Linux libc Development [Archive]
|
||||||
|
if: inputs.meta == 'true' && matrix.defconfig == 'bcm2711_defconfig'
|
||||||
|
run: |
|
||||||
|
/usr/bin/tar --create --directory="./linux-libc-dev_${{ matrix.codename }}" --file="./linux-libc-dev_${{ matrix.codename }}.tar.gz" --gzip '.' --verbose
|
||||||
|
- name: Linux libc Development [Artifact Upload]
|
||||||
|
if: inputs.meta == 'true' && matrix.defconfig == 'bcm2711_defconfig'
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: linux-libc-dev_${{ matrix.codename }}.tar.gz
|
||||||
|
path: ./linux-libc-dev_${{ matrix.codename }}.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
overwrite: true
|
||||||
|
archive: false
|
||||||
@@ -5,6 +5,7 @@ on:
|
|||||||
# - rpi-6.12.y
|
# - rpi-6.12.y
|
||||||
env:
|
env:
|
||||||
BRANCH: rpi-6.12.y
|
BRANCH: rpi-6.12.y
|
||||||
|
META: true
|
||||||
jobs:
|
jobs:
|
||||||
sources:
|
sources:
|
||||||
uses: ./.gitea/workflows/sources.yml
|
uses: ./.gitea/workflows/sources.yml
|
||||||
@@ -16,4 +17,5 @@ jobs:
|
|||||||
uses: ./.gitea/workflows/build.yml
|
uses: ./.gitea/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
BRANCH: ${{ env.branch }}
|
BRANCH: ${{ env.branch }}
|
||||||
|
META: ${{ env.meta }}
|
||||||
VERSION: ${{ needs.sources.outputs.version }}
|
VERSION: ${{ needs.sources.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user