From 3560212f7cece883d0fd82cd9197afaf35c8acd0 Mon Sep 17 00:00:00 2001 From: KancyJoe Date: Wed, 25 Dec 2024 13:03:20 +0000 Subject: [PATCH] ci: add ci for xiaomi k60p (socrates). --- .github/workflows/sm8550_xiaomi_k60_pro.yml | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/sm8550_xiaomi_k60_pro.yml diff --git a/.github/workflows/sm8550_xiaomi_k60_pro.yml b/.github/workflows/sm8550_xiaomi_k60_pro.yml new file mode 100644 index 000000000..e38843527 --- /dev/null +++ b/.github/workflows/sm8550_xiaomi_k60_pro.yml @@ -0,0 +1,38 @@ +# This is a basic workflow to help you get started with Actions + +name: SM8550 Xiaomi Redmi K60 Pro + +# 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/KailuaPkg/Device/xiaomi-socrates/**' + # 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 redmi k60p. + run: bash scripts/ci_setup.sh && ./build_uefi.py -d xiaomi-socrates + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: uefi-images-socrates + path: Build/*/ci_artifacts + compression-level: 9