Skip to content

Commit

Permalink
CI: Enable build support for MSM8998 platform and devices
Browse files Browse the repository at this point in the history
Signed-off-by: XiaoYeZi <qaz6750@outlook.com>
  • Loading branch information
qaz6750 committed Jan 21, 2025
1 parent a519812 commit 648fae5
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/msm8998.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This is a basic workflow to help you get started with Actions

name: Build uefi for all MSM8998 devices.

# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# 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 two jobs called "build" and "package"
build:
uses: Project-Aloha/mu_aloha_platforms/.github/workflows/build_platform.yml@main
with:
platform: NazgulPkg
secrets: inherit

package:
strategy:
matrix:
target:
[
{
platform: "NazgulPkg",
codename: "nazgul",
chipname: "msm8998",
},
]

# The type of runner that the job will run on
runs-on: ubuntu-22.04

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
38 changes: 38 additions & 0 deletions .github/workflows/msm8998_oneplus_5t.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: MSM8998 OnePlus 5T

# 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:
- 'Platforms/NazgulPkg/Device/oneplus-dumpling/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# 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 a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04

# 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: Build SB/NOSB uefi for OnePlus 5T.
run: bash scripts/ci_setup.sh && ./build_uefi.py -d oneplus-dumpling

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: uefi-images-dumpling
path: Build/*/ci_artifacts
compression-level: 9
38 changes: 38 additions & 0 deletions .github/workflows/msm8998_xiaomi_6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: MSM8998 XiaoMi 6

# 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:
- 'Platforms/NazgulPkg/Device/xiaomi-sagit/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# 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 a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04

# 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: Build SB/NOSB uefi for XiaoMi 6.
run: bash scripts/ci_setup.sh && ./build_uefi.py -d xiaomi-sagit

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: uefi-images-sagit
path: Build/*/ci_artifacts
compression-level: 9

0 comments on commit 648fae5

Please sign in to comment.