mirror of
https://github.com/edk2-porting/edk2-rk3588.git
synced 2025-06-03 06:30:23 +00:00
81 lines
2.0 KiB
YAML
81 lines
2.0 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
branches:
|
|
- master
|
|
workflow_call:
|
|
inputs:
|
|
build-configs:
|
|
type: string
|
|
required: true
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
PLATFORM:
|
|
- rock-5b
|
|
- rock-5a
|
|
- orangepi-5
|
|
- orangepi-5plus
|
|
- indiedroid-nova
|
|
- roc-rk3588s-pc
|
|
- station-m3
|
|
- r58x
|
|
- r58-mini
|
|
- edge2
|
|
- nanopi-r6s
|
|
- nanopc-t6
|
|
- blade3
|
|
- h88k
|
|
# - rk3588-evb is currently failing
|
|
CONFIGURATION: ${{ fromJSON(format('[{0}]', inputs.build-configs || '"Debug"')) }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get update && \
|
|
sudo apt-get install -y \
|
|
acpica-tools \
|
|
binutils-aarch64-linux-gnu \
|
|
build-essential \
|
|
device-tree-compiler \
|
|
gettext \
|
|
git \
|
|
gcc-aarch64-linux-gnu \
|
|
libc6-dev-arm64-cross \
|
|
python3 \
|
|
python3-pyelftools
|
|
|
|
- name: Get version tag
|
|
id: get_version_tag
|
|
shell: bash
|
|
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build platform
|
|
shell: bash
|
|
run: |
|
|
./build.sh --device ${{matrix.PLATFORM}} --release ${{matrix.CONFIGURATION}}
|
|
mv RK3588_NOR_FLASH.img ${{matrix.PLATFORM}}_UEFI_${{matrix.CONFIGURATION}}_${{steps.get_version_tag.outputs.version}}.img
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{matrix.PLATFORM}} UEFI ${{matrix.CONFIGURATION}} image
|
|
path: ./*.img
|
|
if-no-files-found: error
|