Skip to content

ga: run on 'v' tags #27

ga: run on 'v' tags

ga: run on 'v' tags #27

Workflow file for this run

name: Build ArmCpuInfo
on:
push:
branches: [ "devel" ]
tags: "v*"
pull_request:
branches: [ "devel" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install deps
run: sudo apt-get install git gcc-aarch64-linux-gnu build-essential uuid-dev iasl git nasm python-is-python3 coreutils mdm
- name: checkout EDK2
uses: actions/checkout@v4
with:
repository: tianocore/edk2
submodules: true
path: edk2
- name: checkout ArmCpuInfo
uses: actions/checkout@v4
with:
path: edk2/ArmPkg/Application
- name: enable ArmCpuInfo
run: echo "ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.inf" >> edk2/ArmPkg/ArmPkg.dsc
- name: build BaseTools
run: make -C edk2/BaseTools -j$(ncpus)
env:
WORKSPACE: $PWD
GCC_AARCH64_PREFIX: aarch64-linux-gnu-
PACKAGES_PATH: $WORKSPACE/edk2
- name: build ArmCpuInfo
run: |
export PATH=$PWD/edk2/BaseTools/Bin/Linux-x86_64:$PWD/edk2/BaseTools/BinWrappers/PosixLike:$PATH;
export WORKSPACE=$PWD;
export GCC_AARCH64_PREFIX=aarch64-linux-gnu-;
export PACKAGES_PATH=$WORKSPACE/edk2;
source edk2/edksetup.sh;
build -t GCC -a AARCH64 -b RELEASE -m edk2/ArmPkg/Application/ArmCpuInfo/ArmCpuInfo.inf -p edk2/ArmPkg/ArmPkg.dsc
- name: upload ArmCpuInfo binary
uses: actions/upload-artifact@v4
with:
name: ArmCpuInfo
path: Build/Arm/RELEASE_GCC/AARCH64/ArmCpuInfo.efi
release:
name: Do a release
if: startsWith(github.ref, 'refs/tags/') # only on tag pushes
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Do a release
uses: ncipollo/release-action@v1
with:
artifacts: "ArmCpuInfo*"
generatereleasenotes: true