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 4, 2024
1 parent 912beea commit 229378f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 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 @@ -26,7 +26,7 @@ jobs:
git clone https://github.com/tianocore/edk2-libc edk2/edk2-libc
- name: Checkout sbsa-acs repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'edk2/ShellPkg/Application/sbsa-acs'

Expand Down Expand Up @@ -57,8 +57,49 @@ jobs:
source ShellPkg/Application/sbsa-acs/tools/scripts/acsbuild.sh
ls Build/Shell/DEBUG_GCC49/AARCH64/Sbsa.efi
- name: Save Sbsa.efi as an artifact
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4
with:
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@v4
with:
repository: ARM-software/sbsa-acs

- name: Git clone BSA-ACS repository
run: |
git clone https://github.com/ARM-software/bsa-acs.git ../bsa-acs
- name: Remove build folder if present in SBSA-ACS
run: |
rm -rf build
- name: Download Arm GCC cross-compiler
run: |
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: |
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
make
- name: Save Baremetel sbsa.bin as an artifact
uses: actions/upload-artifact@v4
with:
name: Sbsa_baremetal_RDN2.bin
path: build/output/sbsa.bin
if-no-files-found: error
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 229378f

Please sign in to comment.