Skip to content

Commit

Permalink
UEFI Shell 24H1
Browse files Browse the repository at this point in the history
* From edk2-stable202405
* Closes #5
* What the FUCK is wrong with GitHub Actions?!?
  • Loading branch information
pbatard committed May 29, 2024
1 parent b32dc14 commit 3b39747
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
44 changes: 33 additions & 11 deletions .github/workflows/linux_gcc_edk2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,35 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Increase swapfile
run: |
sudo swapoff -a
sudo fallocate -l 15G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
- name: Install toolchains
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install gcc-12-multilib gcc-12-aarch64-linux-gnu gcc-12-arm-linux-gnueabi gcc-12-riscv64-linux-gnu nasm genisoimage
sudo ln -s /usr/bin/aarch64-linux-gnu-gcc-12 /usr/bin/aarch64-linux-gnu-gcc
sudo ln -s /usr/bin/aarch64-linux-gnu-gcc-ar-12 /usr/bin/aarch64-linux-gnu-gcc-ar
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-12 /usr/bin/arm-linux-gnueabi-gcc
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-ar-12 /usr/bin/arm-linux-gnueabi-gcc-ar
sudo ln -s /usr/bin/riscv64-linux-gnu-gcc-12 /usr/bin/riscv64-linux-gnu-gcc
sudo ln -s /usr/bin/riscv64-linux-gnu-gcc-ar-12 /usr/bin/riscv64-linux-gnu-gcc-ar
sudo apt-get -y --no-install-recommends install gcc-13-multilib gcc-13-aarch64-linux-gnu gcc-13-arm-linux-gnueabi gcc-13-riscv64-linux-gnu nasm genisoimage
sudo ln -s /usr/bin/aarch64-linux-gnu-gcc-13 /usr/bin/aarch64-linux-gnu-gcc
sudo ln -s /usr/bin/aarch64-linux-gnu-gcc-ar-13 /usr/bin/aarch64-linux-gnu-gcc-ar
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-13 /usr/bin/arm-linux-gnueabi-gcc
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-ar-13 /usr/bin/arm-linux-gnueabi-gcc-ar
sudo ln -s /usr/bin/riscv64-linux-gnu-gcc-13 /usr/bin/riscv64-linux-gnu-gcc
sudo ln -s /usr/bin/riscv64-linux-gnu-gcc-ar-13 /usr/bin/riscv64-linux-gnu-gcc-ar
- name: Fix the BROKEN cmocka.git EDK2 dependency
run: git config --global url."https://github.com/tianocore/edk2-".insteadOf "https://git.cryptomilk.org/projects/"

- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Set version
Expand All @@ -67,6 +78,15 @@ jobs:
done
done
- name: Create individual Shell binaries
run: |
for ARCH in ${{ env.ARCHS }}; do
cp edk2/Build/Shell/RELEASE_${{ env.COMPILER }}/$ARCH/Shell_${{ env.FULL_SHELL_GUID }}.efi ./shell${ARCH,,}.efi
done
if [ -f ./shellaarch64.efi ]; then
mv ./shellaarch64.efi ./shellaa64.efi
fi
- name: Create ISO filesystem structure
run: |
for BUILD_TYPE in ${{ env.BUILD_TYPES }}; do
Expand Down Expand Up @@ -117,9 +137,10 @@ jobs:
sha256sum $BUILD_TYPE/efi/boot/*.efi
done
sha256sum *.iso
sha256sum *.efi
- name: Upload artifacts
uses: actions/upload-artifact@v3
- name: Upload ISO artifacts
uses: actions/upload-artifact@v4
with:
name: ISOs
path: ./*.iso
Expand All @@ -139,4 +160,5 @@ jobs:
body_path: ./body.txt
files: |
./*.iso
./*.efi
./Version.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ UEFI-Shell

[![Build status](https://img.shields.io/github/actions/workflow/status/pbatard/UEFI-Shell/linux_gcc_edk2.yml?label=Build%20Status&style=flat-square)](https://github.com/pbatard/UEFI-Shell/actions/workflows/linux_gcc_edk2.yml)
[![Github stats](https://img.shields.io/github/downloads/pbatard/UEFI-Shell/total.svg?label=Downloads&style=flat-square)](https://github.com/pbatard/UEFI-Shell/releases)
[![Release](https://img.shields.io/badge/Latest%20Release-23H2%20(edk2--stable202311)-blue.svg?style=flat-square)](https://github.com/pbatard/UEFI-Shell/releases)
[![Release](https://img.shields.io/badge/Latest%20Release-24H1%20(edk2--stable202405)-blue.svg?style=flat-square)](https://github.com/pbatard/UEFI-Shell/releases)
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)

This repository contains pre-built UEFI Shell binary images, generated from
Expand Down
2 changes: 1 addition & 1 deletion edk2
Submodule edk2 updated 1046 files

0 comments on commit 3b39747

Please sign in to comment.