36
This commit is contained in:
@@ -10,17 +10,9 @@ jobs:
|
|||||||
uses: ./.gitea/workflows/sources.yml
|
uses: ./.gitea/workflows/sources.yml
|
||||||
with:
|
with:
|
||||||
BRANCH: ${{ env.branch }}
|
BRANCH: ${{ env.branch }}
|
||||||
echo:
|
build:
|
||||||
needs:
|
needs:
|
||||||
- sources
|
- sources
|
||||||
runs-on: cicd.any
|
uses: ./.gitea/workflows/build.yml
|
||||||
steps:
|
with:
|
||||||
- name: Repository [Clone]
|
VERSION: ${{ needs.sources.outputs.version }}
|
||||||
run: |
|
|
||||||
/usr/bin/echo ${{ needs.sources.outputs.version }}
|
|
||||||
# build:
|
|
||||||
# needs:
|
|
||||||
# - sources
|
|
||||||
# uses: ./.gitea/workflows/build.yml
|
|
||||||
# with:
|
|
||||||
# VERSION: ${{ needs.sources.outputs.version }}
|
|
||||||
@@ -8,33 +8,33 @@ on:
|
|||||||
outputs:
|
outputs:
|
||||||
VERSION:
|
VERSION:
|
||||||
required: true
|
required: true
|
||||||
value: ${{ jobs.job.outputs.version }}
|
value: ${{ jobs.sources.outputs.version }}
|
||||||
jobs:
|
jobs:
|
||||||
job:
|
sources:
|
||||||
name: Raspberry Pi Linux Sources
|
name: Raspberry Pi Linux Sources
|
||||||
runs-on: cicd.any
|
runs-on: cicd.any
|
||||||
outputs:
|
outputs:
|
||||||
VERSION: ${{ steps.environment.outputs.version }}
|
VERSION: ${{ steps.environment.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
# - name: Linux Sources [Clone]
|
- name: Linux Sources [Clone]
|
||||||
# run: |
|
run: |
|
||||||
# /usr/bin/git clone --verbose --depth='1' --branch "${{ inputs.branch }}" 'https://github.com/raspberrypi/linux'
|
/usr/bin/git clone --verbose --depth='1' --branch "${{ inputs.branch }}" 'https://github.com/raspberrypi/linux'
|
||||||
- name: Environment
|
- name: Environment
|
||||||
id: environment
|
id: environment
|
||||||
run: |
|
run: |
|
||||||
VERSION='6.12.16'
|
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 "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
|
||||||
/usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'"
|
/usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'"
|
||||||
# - name: Linux Sources [Archive]
|
- name: Linux Sources [Archive]
|
||||||
# env:
|
env:
|
||||||
# VERSION: ${{ steps.environment.outputs.version }}
|
VERSION: ${{ steps.environment.outputs.version }}
|
||||||
# run: |
|
run: |
|
||||||
# /usr/bin/tar --create --directory="./linux" --file="./linux-sources-${VERSION}.tar.gz" --gzip '.' --verbose
|
/usr/bin/tar --create --directory="./linux" --file="./linux-sources-${VERSION}.tar.gz" --gzip '.' --verbose
|
||||||
# - name: Linux Sources [Artifact Upload]
|
- name: Linux Sources [Artifact Upload]
|
||||||
# uses: https://github.com/christopherhx/gitea-upload-artifact@v7
|
uses: https://github.com/christopherhx/gitea-upload-artifact@v7
|
||||||
# with:
|
with:
|
||||||
# name: linux-sources-${{ steps.environment.outputs.version }}.tar.gz
|
name: linux-sources-${{ steps.environment.outputs.version }}.tar.gz
|
||||||
# path: ./linux-sources-${{ steps.environment.outputs.version }}.tar.gz
|
path: ./linux-sources-${{ steps.environment.outputs.version }}.tar.gz
|
||||||
# if-no-files-found: error
|
if-no-files-found: error
|
||||||
# overwrite: true
|
overwrite: true
|
||||||
# archive: false
|
archive: false
|
||||||
|
|||||||
Reference in New Issue
Block a user