Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow: move build operations in a reusable workflow #244

Merged
merged 10 commits into from
Oct 26, 2023
Prev Previous commit
Next Next commit
[workflow] Set job name when calling reusable workflow with matrix
This makes it nicer in the UI vs the  auto-generated name... which is super long
because they include the matrix parameters as part of it and it ended looking like:

build-and-test (LATEST, self-hosted, x86_64, x86_64, llvm, 16, llvm-16, test_progs, false, 360, t... / test (test_progs, false, 360) / test_progs on x86_64 with llvm-16

Signed-off-by: Manu Bretelle <chantr4@gmail.com>
chantra committed Oct 26, 2023
commit 83a74e7508e10243b719a345a37ccd57eec7dd99
3 changes: 3 additions & 0 deletions .github/workflows/kernel-build-test.yml
Original file line number Diff line number Diff line change
@@ -53,6 +53,9 @@ jobs:

test:
uses: ./.github/workflows/kernel-test.yml
# Setting name to test here to avoid lengthy autogenerated names due to matrix
# e.g build-and-test x86_64-gcc / test (test_progs_parallel, true, 30) / test_progs_parallel on x86_64 with gcc
name: "test"
needs: [build]
strategy:
fail-fast: false
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -37,6 +37,9 @@ jobs:
python3 .github/scripts/matrix.py
build-and-test:
# Setting name to arch-compiler here to avoid lengthy autogenerated names due to matrix
# e.g build-and-test x86_64-gcc / test (test_progs_parallel, true, 30) / test_progs_parallel on x86_64 with gcc
name: "${{ matrix.arch }}-${{ matrix.toolchain_full }}"
uses: ./.github/workflows/kernel-build-test.yml
needs: [set-matrix]
permissions: