From da08c528436090846f2a597ae03918cc88a35df2 Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Wed, 16 Oct 2024 15:38:29 -0700 Subject: [PATCH] Build selftests/sched_ext only for supported architectures --- .github/workflows/kernel-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/kernel-build.yml b/.github/workflows/kernel-build.yml index ab46f63..9c757f9 100644 --- a/.github/workflows/kernel-build.yml +++ b/.github/workflows/kernel-build.yml @@ -55,6 +55,7 @@ jobs: || github.base_ref || 'bpf-next' }} + BUILD_SCHED_EXT_SELFTESTS: ${{ inputs.arch == 'x86_64' || inputs.arch == 'aarch64' && 'true' || '' }} steps: - uses: actions/checkout@v4 # We fetch an actual bit of history here to facilitate incremental @@ -111,7 +112,8 @@ jobs: # RELEASE=0 adds -O0 make flag # RELEASE=1 adds -O2 make flag RELEASE: ${{ inputs.release && '1' || '' }} - - name: Build selftests/sched_ext + - if: ${{ env.BUILD_SCHED_EXT_SELFTESTS }} + name: Build selftests/sched_ext uses: theihor/libbpf-ci/build-scx-selftests@build-scx with: arch: ${{ inputs.arch }}