17
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Step 1
|
||||
name: Raspberry Pi Linux Kernel [Build]
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -6,8 +6,8 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
job:
|
||||
name: Job
|
||||
build:
|
||||
name: Raspberry Pi Linux Build
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
@@ -19,13 +19,8 @@ jobs:
|
||||
runner: cicd.bookworm
|
||||
runs-on: ${{ matrix.runner }}
|
||||
steps:
|
||||
- name: Step 1
|
||||
# - name: Repository [Clone]
|
||||
# uses: https://github.com/actions/checkout@v6
|
||||
- name: Repository [Clone]
|
||||
run: |
|
||||
/usr/bin/echo "Kernel: ${{ matrix.kernel }}"
|
||||
/usr/bin/echo "Runner: ${{ matrix.runner }}"
|
||||
/usr/bin/echo "Version: ${{ inputs.VERSION }}"
|
||||
- name: Step 2
|
||||
uses: https://gitea.com/actions/download-artifact@v3-node20
|
||||
with:
|
||||
name: test-${{ inputs.VERSION }}.tmp
|
||||
skip-decompress: true
|
||||
/usr/bin/echo "${{ inputs.version }}"
|
||||
@@ -1,44 +0,0 @@
|
||||
name: TEST
|
||||
on:
|
||||
- push
|
||||
jobs:
|
||||
job1:
|
||||
name: Job 1
|
||||
outputs:
|
||||
VERSION: ${{ steps.environment.outputs.version }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- branch: rpi-6.12.y
|
||||
runner: cicd.any
|
||||
- branch: rpi-6.18.y
|
||||
runner: cicd.any
|
||||
runs-on: ${{ matrix.runner }}
|
||||
steps:
|
||||
- name: Step 1
|
||||
id: environment
|
||||
run: |
|
||||
VERSION='6.12.26'
|
||||
/usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
|
||||
/usr/bin/echo "Version: ${VERSION}"
|
||||
/usr/bin/echo "Branch: ${{ matrix.branch }}"
|
||||
/usr/bin/echo "Runner: ${{ matrix.runner }}"
|
||||
- name: Step 1
|
||||
env:
|
||||
VERSION: ${{ steps.environment.outputs.version }}
|
||||
run: |
|
||||
/usr/bin/fallocate -l 64M "./test-${VERSION}.tmp"
|
||||
- name: Step 3
|
||||
uses: https://github.com/christopherhx/gitea-upload-artifact@v7
|
||||
with:
|
||||
name: test-${{ steps.environment.outputs.version }}.tmp
|
||||
path: ./test-${{ steps.environment.outputs.version }}.tmp
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
archive: false
|
||||
job2:
|
||||
needs:
|
||||
- job1
|
||||
uses: ./.gitea/workflows/step1.yml
|
||||
with:
|
||||
VERSION: ${{ needs.job1.outputs.version }}
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Raspberry Pi Linux Kernel 6.12.y
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- rpi-6.12.y
|
||||
env:
|
||||
BRANCH: rpi-6.12.y
|
||||
jobs:
|
||||
sources:
|
||||
uses: ./.gitea/workflows/sources.yml
|
||||
with:
|
||||
BRANCH: ${BRANCH}
|
||||
build:
|
||||
needs:
|
||||
- sources
|
||||
uses: ./.gitea/workflows/build.yml
|
||||
with:
|
||||
VERSION: ${{ needs.sources.outputs.version }}
|
||||
@@ -0,0 +1,36 @@
|
||||
name: Raspberry Pi Linux Kernel [Sources]
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
BRANCH:
|
||||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
sources:
|
||||
name: Raspberry Pi Linux Sources
|
||||
outputs:
|
||||
VERSION: ${{ steps.environment.outputs.version }}
|
||||
runs-on: cicd.any
|
||||
steps:
|
||||
- name: Linux Sources [Clone]
|
||||
run: |
|
||||
/usr/bin/git clone --verbose --depth='1' --branch "${{ inputs.branch }}" 'https://github.com/raspberrypi/linux'
|
||||
- name: Linux Sources [Version]
|
||||
id: environment
|
||||
run: |
|
||||
VERSION=$(/usr/bin/make --directory='./linux' kernelversion | /usr/bin/grep --extended-regexp --only-matching '^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}$')
|
||||
/usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
|
||||
/usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'"
|
||||
- name: Linux Sources [Archive]
|
||||
env:
|
||||
VERSION: ${{ steps.environment.outputs.version }}
|
||||
run: |
|
||||
/usr/bin/tar --create --directory="./linux" --file="./linux-sources-${VERSION}.tar.gz" --gzip '.' --verbose
|
||||
- name: Linux Sources [Artifact Upload]
|
||||
uses: https://github.com/christopherhx/gitea-upload-artifact@v7
|
||||
with:
|
||||
name: linux-sources-${{ steps.environment.outputs.version }}.tar.gz
|
||||
path: ./linux-sources-${{ steps.environment.outputs.version }}.tar.gz
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
archive: false
|
||||
Reference in New Issue
Block a user