aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-25 18:24:00 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-25 18:24:00 +0200
commitbf8187d5dc4d4bbb23770955744bca1787f32ac0 (patch)
tree9843cc8d798f8cf7d769a8083125247ee865c57c /.github
parentf5a5ce8822e9add9627ecb6ea289c8de2b8a76a9 (diff)
downloadupstream-bf8187d5dc4d4bbb23770955744bca1787f32ac0.tar.gz
upstream-bf8187d5dc4d4bbb23770955744bca1787f32ac0.tar.bz2
upstream-bf8187d5dc4d4bbb23770955744bca1787f32ac0.zip
CI: use split target and subtarget in label workflow
With eecc6e48117b ("CI: rework build workflow to have split target and subtarget directly") target and subtarget are split in 2 different variables. Label workflow were not aligned to this change and are currently broken. Fix them and correctly pass split target and subtarget. Fixes: eecc6e48117b ("CI: rework build workflow to have split target and subtarget directly") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/label-kernel.yml5
-rw-r--r--.github/workflows/label-target.yml4
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/label-kernel.yml b/.github/workflows/label-kernel.yml
index 1156e0ad985..6c79014edb6 100644
--- a/.github/workflows/label-kernel.yml
+++ b/.github/workflows/label-kernel.yml
@@ -20,7 +20,8 @@ jobs:
env:
CI_EVENT_LABEL_NAME: ${{ github.event.label.name }}
run: |
- echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/target="\1\/\2"/p' | tee --append $GITHUB_OUTPUT
+ echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/target="\1"/p' | tee --append $GITHUB_OUTPUT
+ echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/subtarget="\2"/p' | tee --append $GITHUB_OUTPUT
build_kernel:
name: Build Kernel with external toolchain
@@ -31,6 +32,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
target: ${{ needs.set_target.outputs.target }}
+ subtarget: ${{ needs.set_target.outputs.subtarget }}
build_kernel: true
build_all_kmods: true
@@ -43,3 +45,4 @@ jobs:
uses: ./.github/workflows/check-kernel-patches.yml
with:
target: ${{ needs.set_target.outputs.target }}
+ subtarget: ${{ needs.set_target.outputs.subtarget }}
diff --git a/.github/workflows/label-target.yml b/.github/workflows/label-target.yml
index e1890240764..4c3df28f51b 100644
--- a/.github/workflows/label-target.yml
+++ b/.github/workflows/label-target.yml
@@ -20,7 +20,8 @@ jobs:
env:
CI_EVENT_LABEL_NAME: ${{ github.event.label.name }}
run: |
- echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/target="\1\/\2"/p' | tee --append $GITHUB_OUTPUT
+ echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/target="\1"/p' | tee --append $GITHUB_OUTPUT
+ echo "$CI_EVENT_LABEL_NAME" | sed -n 's/.*:\(.*\):\(.*\)$/subtarget="\2"/p' | tee --append $GITHUB_OUTPUT
build_target:
name: Build target
@@ -31,6 +32,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
target: ${{ needs.set_target.outputs.target }}
+ subtarget: ${{ needs.set_target.outputs.subtarget }}
build_full: true
build_all_kmods: true
build_all_boards: true