From efd6cce84279b3f188bc0c5a30f00c9866278262 Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Tue, 27 May 2025 09:17:23 +0200 Subject: [PATCH] .github: pass (Infix) name as workflow_call input Signed-off-by: Richard Alpe --- .github/workflows/build.yml | 12 ++++++++---- .github/workflows/trigger.yml | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac47d77e..48f5cfd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build Infix +name: Build on: workflow_dispatch: @@ -19,9 +19,12 @@ on: target: required: true type: string + name: + required: true + type: string jobs: build: - name: Build Infix ${{ inputs.target }} + name: Build ${{ inputs.name }} ${{ inputs.target }} runs-on: [ self-hosted, latest ] strategy: fail-fast: false @@ -70,8 +73,9 @@ jobs: fi fi target=${{ inputs.target }} - echo "dir=infix-$target" >> $GITHUB_OUTPUT - echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT + name=${{ inputs.name }} + echo "dir=${name}-${target}" >> $GITHUB_OUTPUT + echo "tgz=${name}-${target}.tar.gz" >> $GITHUB_OUTPUT echo "flv=$flavor" >> $GITHUB_OUTPUT echo "Building target ${target}${flavor}_defconfig" diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml index ff602bfe..962c70f1 100644 --- a/.github/workflows/trigger.yml +++ b/.github/workflows/trigger.yml @@ -14,11 +14,13 @@ jobs: uses: ./.github/workflows/build.yml with: target: x86_64 + name: infix build-aarch64: uses: ./.github/workflows/build.yml with: target: aarch64 + name: infix test-run-x86_64: needs: build-x86_64