forked from Project-Aloha/mu_aloha_platforms
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (94 loc) · 3.33 KB
/
all_platforms.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# This is a basic workflow to help you get started with Actions
name: Build uefi for all devices.
## Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# push:
# branches: ["main"]
# paths:
# - "Binaries"
# - "Common/**"
# - "Features/**"
# - "MU_BASECORE"
# - "Silicon/Arm/**"
# - "scripts/**"
# - "Platforms/SurfaceDuoFamilyPkg/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Triggers the workflow on pull request
# pull_request:
# types: [opened, reopened]
# paths:
# - "Binaries"
# - "Common/**"
# - "Features/**"
# - "MU_BASECORE"
# - "Silicon/Arm/**"
# - "scripts/**"
# - "Platforms/SurfaceDuoFamilyPkg/**"
# Indicate that we are running in CI
env:
WM_CI_BUILD: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains three jobs called "setup" "build" and "package"
setup:
# The type of runner that the job will run on
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- id: matrix
run: |
echo "value=[$(find ./Platforms -maxdepth 1 -type d -exec test -f '{}'/PlatformBuild.py -a -f '{}'/PlatformBuildNoSb.py \; -printf "\"%f\", ")]" >> $GITHUB_OUTPUT
build:
strategy:
matrix:
target: ${{fromJSON(needs.setup.outputs.matrix)}}
needs: setup
uses: Project-Aloha/mu_aloha_platforms/.github/workflows/build_platform.yml@main
with:
platform: ${{ matrix.target }}
secrets: inherit
package:
strategy:
matrix:
target:
[
{ platform: "RennellPkg", codename: "rennell", chipname: "sm7125" },
{ platform: "KailuaPkg", codename: "kailua", chipname: "sm8550" },
{ platform: "KodiakPkg", codename: "kodiak", chipname: "sm7325" },
{ platform: "KonaPkg", codename: "kona", chipname: "sm8250" },
{ platform: "PalimaPkg", codename: "palima", chipname: "sm8475" },
{
platform: "SurfaceDuo1Pkg",
codename: "hana",
chipname: "sm8150",
},
{
platform: "SurfaceDuo2Pkg",
codename: "lahaina",
chipname: "sm8350",
},
]
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: build
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
path: Build
merge-multiple: true
- name: Upload ${{ matrix.target.codename }}'s Artifact
uses: actions/upload-artifact@v4
with:
name: uefi-images-${{ matrix.target.codename }}-${{ matrix.target.chipname }}
path: Build/${{ matrix.target.platform }}/ci_artifacts
compression-level: 9