Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vicenteicc2008 committed Jun 27, 2024
1 parent 7e5ab0e commit a69321d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/main-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build (RELEASE)

on:
push:
branches: [ "530" ]
pull_request:
branches: [ "530" ]

jobs:
build:

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Update APT
run: sudo apt update

- name: Install Dependencies
run: sudo apt install build-essential crossbuild-essential-armhf uuid-dev iasl git nasm python3-distutils

- name: Create EDK2 workspace
run: mkdir /home/runner/work/EDK2WorkDir

- name: Clone sources
run: |
cd /home/runner/work/EDK2WorkDir/
git clone https://github.com/Tianocore/edk2.git -b stable/202011 --depth=1 --recursive
git clone https://github.com/vicenteicc2008/Lumia530Pkg --depth=1 edk2/Lumia530Pkg
- name: Build BaseTools
run: |
cd /home/runner/work/EDK2WorkDir/edk2
make -C BaseTools/
- name: Build EDK2
run: |
cd /home/runner/work/EDK2WorkDir/edk2
. /home/runner/work/EDK2WorkDir/edk2/edksetup.sh
GCC5_ARM_PREFIX=arm-linux-gnueabihf- build -a ARM -p Lumia530Pkg/Lumia530.dsc -t GCC5 -j$(nproc) -s -n 0 -b RELEASE
- name: Create ELF binary
run: |
cd /home/runner/work/EDK2WorkDir/edk2/Build/Lumia530-ARM/RELEASE_GCC5/FV
arm-linux-gnueabihf-objcopy -I binary -O elf32-littlearm --binary-architecture arm MSM8612_EFI.fd MSM8612_EFI.fd.elf && arm-linux-gnueabihf-ld MSM8612_EFI.fd.elf -T ../../../../Lumia530Pkg/FvWrapper.ld -o ../../../../../emmc_appsboot.mbn
- uses: actions/upload-artifact@v4
with:
name: Lumia 530
path: /home/runner/work/EDK2WorkDir/emmc_appsboot.mbn
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C/C++ CI
name: build (DEBUG)

on:
push:
Expand Down

0 comments on commit a69321d

Please sign in to comment.