From 02790d7288417047ee85084e12d40c98fef103d9 Mon Sep 17 00:00:00 2001 From: Jose Martins Date: Wed, 18 Sep 2024 14:47:56 +0100 Subject: [PATCH] feat(ci/actions): add clang build Signed-off-by: Jose Martins --- .github/workflows/build-arm.yaml | 7 ++++++- .github/workflows/build-riscv.yaml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-arm.yaml b/.github/workflows/build-arm.yaml index 039e26dac..c1ca5b5dd 100644 --- a/.github/workflows/build-arm.yaml +++ b/.github/workflows/build-arm.yaml @@ -23,8 +23,13 @@ jobs: "GICV2", "GICV3", ] + cross_compile: [ + "", + "CROSS_COMPILE=clang", + ] steps: - uses: actions/checkout@v4 with: submodules: recursive - - run: make PLATFORM=${{ matrix.platform }} GIC_VERSION=${{ matrix.gic }} CONFIG=null + - run: make PLATFORM=${{ matrix.platform }} GIC_VERSION=${{ matrix.gic }} \ + CONFIG=null ${{ matrix.cross_compile }} diff --git a/.github/workflows/build-riscv.yaml b/.github/workflows/build-riscv.yaml index 40ee9011f..70ad39f51 100644 --- a/.github/workflows/build-riscv.yaml +++ b/.github/workflows/build-riscv.yaml @@ -24,9 +24,13 @@ jobs: "IPIC_SBI", "IPIC_ACLINT", ] + cross_compile: [ + "", + "CROSS_COMPILE=clang", + ] steps: - uses: actions/checkout@v4 with: submodules: recursive - run: make PLATFORM=${{ matrix.platform }} IRQC=${{ matrix.irqc }} \ - IPIC=${{ matrix.ipic }} CONFIG=null + IPIC=${{ matrix.ipic }} CONFIG=null ${{ matrix.cross_compile }}