Skip to content

Commit

Permalink
Baremetal compilaiton check to GitHub actions
Browse files Browse the repository at this point in the history
 - Modified GitHub actions yml file to add Baremetal compilation check for every check-in on SBSA master.

Signed-off-by: Srikar Josyula <[email protected]>
  • Loading branch information
SrikarJosyula committed Apr 3, 2024
1 parent 912beea commit d4c6a2d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SBSA-ACS UEFI application build
name: SBSA-ACS build

on:
push:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit d4c6a2d

Please sign in to comment.