Skip to content

Commit

Permalink
Enhancement to Github Actions
Browse files Browse the repository at this point in the history
 Split of .yml files based on:
  -check-in build
  -daily build

Signed-off-by: Riya Sisodia <riya.sisodia@arm.com>
  • Loading branch information
Riya Sisodia committed Apr 7, 2024
1 parent 76321ff commit e649ebe
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SBSA-ACS build
name: SBSA-ACS Build Check

on:
push:
Expand All @@ -7,8 +7,6 @@ on:
pull_request: # trigger on pull requests to master
branches:
- master
schedule:
- cron: '30 17 * * *' # Runs everyday at 11 PM IST (17:30 UTC)
workflow_dispatch: # to dispatch from Github Actions

jobs:
Expand Down Expand Up @@ -102,4 +100,4 @@ jobs:
with:
name: Sbsa_baremetal_RDN2.bin
path: build/output/sbsa.bin
if-no-files-found: error
if-no-files-found: error
99 changes: 99 additions & 0 deletions .github/workflows/sbsa-acs_daily_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: SBSA-ACS Daily Build

on:
schedule:
- cron: '30 17 * * *' # Runs everyday at 11 PM IST (17:30 UTC)
workflow_dispatch: # to dispatch from Github Actions

jobs:
build:
name: SBSA-ACS UEFI application build
runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y git build-essential nasm

- name: Download edk2 and its submodules
run: |
git clone --recursive --branch edk2-stable202402 https://github.com/tianocore/edk2
git clone https://github.com/tianocore/edk2-libc edk2/edk2-libc
- name: Checkout sbsa-acs repository
uses: actions/checkout@v4
with:
path: 'edk2/ShellPkg/Application/sbsa-acs'

- name: Checkout bsa-acs repository
run: |
cd edk2
git clone https://github.com/ARM-software/bsa-acs.git ShellPkg/Application/bsa-acs
- name: Apply edk2 sbsa patch
run: |
cd edk2
git apply ShellPkg/Application/sbsa-acs/patches/edk2-sbsa.diff
- 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-linux-gnu.tar.xz
tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz
- name: Set up EDK2 environment and build Sbsa.efi
run: |
cd edk2
export GCC49_AARCH64_PREFIX=/opt/cross/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
export PACKAGES_PATH=$PWD/edk2-libc
source edksetup.sh
make -C BaseTools/Source/C
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@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.yml/badge.svg?event=schedule)](https://github.com/ARM-software/sbsa-acs/actions/workflows/build-sbsa.yml)
[![SBSA-ACS Build Check](https://github.com/ARM-software/sbsa-acs/actions/workflows/sbsa-acs_build_check.yml/badge.svg)](https://github.com/ARM-software/sbsa-acs/actions/workflows/sbsa-acs_build_check.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 e649ebe

Please sign in to comment.