From fce24953727a5f5f59af155bf8deb499d19ffabc Mon Sep 17 00:00:00 2001 From: alikates <59802505+alikates@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:50:46 +0200 Subject: [PATCH] Add github CI --- .github/workflows/build.yml | 13 +++++++++++++ .github/workflows/lk2nd.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/lk2nd.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..ac2036f212 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,13 @@ +name: Build +on: [push, pull_request] + +jobs: + lk2nd-msm8953: + name: lk2nd + uses: ./.github/workflows/lk2nd.yml + with: + project: msm8953-secondary + platform: msm8953 + artifacts: | + build-*/lk.bin + build-*/lk2nd.img diff --git a/.github/workflows/lk2nd.yml b/.github/workflows/lk2nd.yml new file mode 100644 index 0000000000..1c4c906aba --- /dev/null +++ b/.github/workflows/lk2nd.yml @@ -0,0 +1,37 @@ +name: Build lk2nd +on: + workflow_call: + inputs: + project: + type: string + required: true + platform: + type: string + required: true + options: + type: string + artifacts: + type: string + required: true + +jobs: + build: + name: ${{ inputs.platform }} + runs-on: ubuntu-latest + steps: + - name: Install additional build dependencies + run: sudo apt-get update -yqq && sudo apt-get install -yqq device-tree-compiler + - name: Install cross compiler + uses: carlosperate/arm-none-eabi-gcc-action@v1 + - run: arm-none-eabi-gcc --version + - uses: actions/checkout@v3 + - name: Build + run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- + ${{ inputs.options }} ${{ inputs.platform }}-secondary + - name: Archive artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ inputs.platform }} + path: ${{ inputs.artifacts }} + env: + LKLE_CFLAGS: -Werror