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