eBPF-based security platform
ci: build riscv64 only on pushes to main
Martynas Pumputis5cf9b43be5b0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 835c5f0d..2f721e6d 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -153,26 +153,26 @@ jobs:if-no-files-found: ignore# A matrix job skipped as a whole reports one check, under none of its- # entries' names, and the merge queue waits for each of those. In the+ # entries' names, and the merge queue waits for the arm64 one. In the# queue the job runs instead, without the BTF and with every step# skipped.arch:name: ${{ matrix.arch }}needs: btfif: ${{ !cancelled() && (needs.btf.result == 'success' || github.event_name == 'merge_group') }}- runs-on: ${{ matrix.runner }}+ runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}timeout-minutes: 90# Every other job builds and tests on x86-64. arm64 builds natively on- # an arm64 runner; riscv64, which has none, under QEMU user emulation.+ # an arm64 runner; riscv64, which has none, under QEMU user emulation+ # and, taking the longest, on a push to main alone. An include would+ # add back the entry the exclude takes out.strategy:fail-fast: falsematrix:- include:- - arch: arm64- runner: ubuntu-24.04-arm- - arch: riscv64- runner: ubuntu-latest+ arch: [arm64, riscv64]+ exclude:+ - arch: ${{ github.event_name != 'push' && 'riscv64' || '' }}steps:- name: Check out repositorydiff --git a/Documentation/contribute/arch-support.rst b/Documentation/contribute/arch-support.rstindex 7c30f41c..798e6bdb 100644--- a/Documentation/contribute/arch-support.rst+++ b/Documentation/contribute/arch-support.rst@@ -33,7 +33,7 @@ Comparison* - CI- Every tier on every push- Unit tests, ``ci-checks``, and host functional tests (``VM=0``)- - None+ - Unit tests under QEMU user emulation, after each push to ``main``* - Test VM- Boots on x86-64 hosts- Boots on arm64 hosts; ``t1007`` checks its settings withoutdiff --git a/Documentation/contribute/code/developer-guide.rst b/Documentation/contribute/code/developer-guide.rstindex b55de621..c55b0a31 100644--- a/Documentation/contribute/code/developer-guide.rst+++ b/Documentation/contribute/code/developer-guide.rst@@ -532,7 +532,8 @@ the commit at ``HEAD`` alone without them.from unstable, builds thebinary and the helper with the BTF given, and runs the unit testsand ``check-operator-linkage.sh``. The ``Build`` workflow runs it- in a ``debian:testing`` container on arm64 and riscv64. It+ in a ``debian:testing`` container on arm64, and on riscv64 after+ each push to ``main``. Itinstalls packages as root, so run it only in a throwawaycontainer.* - ``check-static-target.sh <binary>``diff --git a/Documentation/contribute/testing/test-coverage.rst b/Documentation/contribute/testing/test-coverage.rstindex bee14c2f..8d40420d 100644--- a/Documentation/contribute/testing/test-coverage.rst+++ b/Documentation/contribute/testing/test-coverage.rst@@ -1544,9 +1544,9 @@ Platforms- Real TPMs. Every TPM test uses ``swtpm`` in the VM or the libtpmssimulator helper.-- Architectures. CI builds and runs the unit tests on arm64 and on- riscv64, under QEMU user emulation, with the BPF objects built from- the BTF of the x86-64 bpf-next kernel. The CI suite also runs unit,+- Architectures. CI builds and runs the unit tests on arm64, and on+ riscv64 under QEMU user emulation after each push to ``main``, with+ the BPF objects built from the BTF of the x86-64 bpf-next kernel. The CI suite also runs unit,``ci-checks`` and host functional tests on arm64 with ``VM=0``.Target VM tests, end-to-end tests and fuzzing run on x86-64 only. Thetest VM boots arm64 too, and ``t1007`` checks its arm64 settings withoutdiff --git a/Documentation/contribute/testing/testing.rst b/Documentation/contribute/testing/testing.rstindex d1350efa..c15a6e82 100644--- a/Documentation/contribute/testing/testing.rst+++ b/Documentation/contribute/testing/testing.rst@@ -64,9 +64,9 @@ land before it, and runs only what such a change most often breaks: thegcc and clang jobs of ``Build`` with their unit tests, ``Build everycommit``, the documentation, the sign-offs, and the checkpatch, SPDX,ShellCheck and unused-function jobs of ``Lint``. The ``CI suite``, the-arm64, riscv64 and scan-build jobs, sparse, Coccinelle and the packages-run on the pull request and on every push to ``main``. In the merge queue-their jobs pass without running.+arm64 and scan-build jobs, sparse, Coccinelle and the packages run on the+pull request and on every push to ``main``. In the merge queue their jobs+pass without running. The riscv64 build runs on pushes to ``main`` alone.On pull requests and pushes to ``main``, Lint runs the full-tree Coccinelleand unused-function checks. The CI suite, coverage, and sanitizer jobs still