From 97b2da4ad2de43048b5efb46c636286fa6faf87a Mon Sep 17 00:00:00 2001 From: Cantibra Date: Wed, 6 May 2026 11:22:37 +0200 Subject: [PATCH] 36 --- .gitea/workflows/rpi-6.12.y.yml | 16 ++++---------- .gitea/workflows/sources.yml | 38 ++++++++++++++++----------------- 2 files changed, 23 insertions(+), 31 deletions(-) diff --git a/.gitea/workflows/rpi-6.12.y.yml b/.gitea/workflows/rpi-6.12.y.yml index fcbcba2..8c08ec0 100644 --- a/.gitea/workflows/rpi-6.12.y.yml +++ b/.gitea/workflows/rpi-6.12.y.yml @@ -10,17 +10,9 @@ jobs: uses: ./.gitea/workflows/sources.yml with: BRANCH: ${{ env.branch }} - echo: + build: needs: - sources - runs-on: cicd.any - steps: - - name: Repository [Clone] - run: | - /usr/bin/echo ${{ needs.sources.outputs.version }} -# build: -# needs: -# - sources -# uses: ./.gitea/workflows/build.yml -# with: -# VERSION: ${{ needs.sources.outputs.version }} \ No newline at end of file + uses: ./.gitea/workflows/build.yml + with: + VERSION: ${{ needs.sources.outputs.version }} \ No newline at end of file diff --git a/.gitea/workflows/sources.yml b/.gitea/workflows/sources.yml index b867502..1d02911 100644 --- a/.gitea/workflows/sources.yml +++ b/.gitea/workflows/sources.yml @@ -8,33 +8,33 @@ on: outputs: VERSION: required: true - value: ${{ jobs.job.outputs.version }} + value: ${{ jobs.sources.outputs.version }} jobs: - job: + sources: name: Raspberry Pi Linux Sources runs-on: cicd.any outputs: VERSION: ${{ steps.environment.outputs.version }} steps: -# - name: Linux Sources [Clone] -# run: | -# /usr/bin/git clone --verbose --depth='1' --branch "${{ inputs.branch }}" 'https://github.com/raspberrypi/linux' + - name: Linux Sources [Clone] + run: | + /usr/bin/git clone --verbose --depth='1' --branch "${{ inputs.branch }}" 'https://github.com/raspberrypi/linux' - name: Environment id: environment 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 "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 + - 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