From d4c6a2d0b6e37e5807df3587f3af629b69aa500f Mon Sep 17 00:00:00 2001 From: Srikar Josyula Date: Wed, 3 Apr 2024 17:18:59 +0530 Subject: [PATCH] Baremetal compilaiton check to GitHub actions - Modified GitHub actions yml file to add Baremetal compilation check for every check-in on SBSA master. Signed-off-by: Srikar Josyula --- .../{build-sbsa-uefi.yml => build-sbsa.yml} | 43 ++++++++++++++++++- README.md | 2 +- 2 files changed, 43 insertions(+), 2 deletions(-) rename .github/workflows/{build-sbsa-uefi.yml => build-sbsa.yml} (62%) diff --git a/.github/workflows/build-sbsa-uefi.yml b/.github/workflows/build-sbsa.yml similarity index 62% rename from .github/workflows/build-sbsa-uefi.yml rename to .github/workflows/build-sbsa.yml index fb75928f..24a7e55c 100644 --- a/.github/workflows/build-sbsa-uefi.yml +++ b/.github/workflows/build-sbsa.yml @@ -1,4 +1,4 @@ -name: SBSA-ACS UEFI application build +name: SBSA-ACS build on: push: @@ -62,3 +62,44 @@ jobs: name: Sbsa.efi path: edk2/Build/Shell/DEBUG_GCC49/AARCH64/Sbsa.efi if-no-files-found: error + + baremetal-compilation: + name: Baremetal CMake compilation check + runs-on: ubuntu-latest + + steps: + + - name: Checkout sbsa-acs repository + uses: actions/checkout@v3 + with: + repository: ARM-software/sbsa-acs + + - name: Git clone BSA-ACS repository + run: | + pwd + ls -la + git clone https://github.com/ARM-software/bsa-acs.git ../bsa-acs + ls -la ../ + + - name: Remove build folder if present in SBSA-ACS + run: | + pwd + rm -rf build + + - name: Download Arm GCC cross-compiler + run: | + pwd + mkdir -p /opt/cross + cd /opt/cross + wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz + tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz + + - name: Compile SBSA Baremetal ACS for RDN2 Platform + run: | + pwd + ls -la + export CROSS_COMPILE=/opt/cross/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-elf/bin/aarch64-none-elf- + mkdir build + cd build + cmake ../ -G "Unix Makefiles" -DCROSS_COMPILE=$CROSS_COMPILE -DTARGET=RDN2 + ls build/output/sbsa.bin \ No newline at end of file diff --git a/README.md b/README.md index ba39574e..7585cb19 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Server Base System Architecture - Architecture Compliance Suite -[![SBSA-ACS UEFI Build](https://github.com/ARM-software/sbsa-acs/actions/workflows/build-sbsa-uefi.yml/badge.svg?event=schedule)](https://github.com/ARM-software/sbsa-acs/actions/workflows/build-sbsa-uefi.yml) +[![SBSA-ACS UEFI Build](https://github.com/ARM-software/sbsa-acs/actions/workflows/build-sbsa.yml/badge.svg?event=schedule)](https://github.com/ARM-software/sbsa-acs/actions/workflows/build-sbsa.yml) ## Server Base System Architecture **Server Base System Architecture** (SBSA) specification specifies a hardware system architecture based on the Arm 64-bit architecture.