efi-demo-apps/.woodpecker.yaml

54 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2024-03-29 11:38:58 +01:00
steps:
- name: build
image: fedora
commands:
2024-03-29 11:54:15 +01:00
- echo "Preparing environment"
2024-03-29 11:56:36 +01:00
- sudo dnf -y install git
2024-03-29 12:01:29 +01:00
- sudo dnf -y install make
2024-03-29 12:05:26 +01:00
- sudo dnf -y install gcc-g++
2024-03-29 12:01:29 +01:00
- sudo dnf -y install libuuid-devel
2024-03-29 13:17:52 +01:00
- sudo dnf -y install nasm
2024-03-29 13:24:18 +01:00
- sudo dnf -y install acpica-tools
2024-03-29 11:54:15 +01:00
2024-03-29 11:38:58 +01:00
- echo "Cloning toolchain repositories"
- git clone https://github.com/tianocore/edk2.git
- cd edk2 && git submodule update --init && cd ..
- git clone https://github.com/tianocore/edk2-platforms.git
- cd edk2-platforms && git submodule update --init && cd ..
- git clone https://github.com/tianocore/edk2-non-osi.git
- echo "Configuring toolchain"
- export EDK_TOOLS_PATH="$PWD/edk2/BaseTools"
- export PACKAGES_PATH="$PWD/edk2:$PWD/edk2-platforms:$PWD/edk2-non-osi"
- . edk2/edksetup.sh
- make -C edk2/BaseTools
2024-04-01 14:51:43 +02:00
- echo "Copying EfiClock application files"
2024-03-29 11:38:58 +01:00
- mkdir edk2/EfiClock
2024-04-01 15:08:26 +02:00
- cp EfiClock/EfiClock.inf edk2/EfiClock/.
- cp EfiClock/UefiMain.c edk2/EfiClock/.
- rm -rf EfiClock
2024-03-29 12:33:52 +01:00
- sed -i '/\[Components\]/a EfiClock/EfiClock.inf' edk2/MdeModulePkg/MdeModulePkg.dsc
2024-03-29 11:38:58 +01:00
2024-04-01 14:51:43 +02:00
- echo "Copying EfiTicTacToe application files"
- mkdir edk2/EfiTicTacToe
2024-04-01 15:08:26 +02:00
- cp EfiTicTacToe/EfiTicTacToe.inf edk2/EfiTicTacToe/.
- cp EfiTicTacToe/UefiMain.c edk2/EfiTicTacToe/.
- rm -rf EfiTicTacToe
2024-04-01 14:51:43 +02:00
- sed -i '/\[Components\]/a EfiTicTacToe/EfiTicTacToe.inf' edk2/MdeModulePkg/MdeModulePkg.dsc
2024-03-29 11:38:58 +01:00
- echo "Building application"
2024-03-29 14:02:14 +01:00
- build -a X64 -t GCC -p MdeModulePkg/MdeModulePkg.dsc
2024-03-29 14:03:59 +01:00
- name: publish
image: woodpeckerci/plugin-gitea-release
when:
- event: [ tag ]
settings:
2024-03-29 14:53:28 +01:00
api_key:
2024-03-29 15:48:42 +01:00
from_secret: api_key
2024-03-29 14:03:59 +01:00
base_url: https://forge.slowte.ch
2024-03-29 14:40:03 +01:00
target: main
2024-03-29 14:38:27 +01:00
files:
2024-04-01 14:51:43 +02:00
- Build/MdeModule/DEBUG_GCC/X64/EfiClock.efi
- Build/MdeModule/DEBUG_GCC/X64/EfiTicTacToe.efi