diff --git a/.github/workflows/main-release.yml b/.github/workflows/main-release.yml new file mode 100644 index 0000000..ebce9f8 --- /dev/null +++ b/.github/workflows/main-release.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b15bd2..72eb6a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: build (DEBUG) on: push: