From 943d729ae1ccec25bd290842c4bae2e29569548a Mon Sep 17 00:00:00 2001 From: shoaibskn1 <47243541+shoaibskn1@users.noreply.github.com> Date: Sun, 8 Aug 2021 00:53:45 +0530 Subject: [PATCH] Create buid.yml --- .github/workflows/buid.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/buid.yml diff --git a/.github/workflows/buid.yml b/.github/workflows/buid.yml new file mode 100644 index 0000000000000..d5bfd772a3c5b --- /dev/null +++ b/.github/workflows/buid.yml @@ -0,0 +1,46 @@ +name: "Build" + +on: + push: + branches: lineage-18.1 + workflow_dispatch: + +jobs: + build: + name: "Build kernel" + runs-on: ubuntu-latest + steps: + - name: "Checkout kernel source" + uses: actions/checkout@v2 + + - name: "Pre-build message to Telegram" + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_CHAT_ID }} + token: ${{ secrets.TELEGRAM_BOT_TOKEN }} + message: Building kernel. https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + + - name: "Android kernel build" + uses: lemniskett/android-kernel-actions@master + id: build + with: + arch: arm64 + compiler: clang/9 + defconfig: olive_perf_defconfig + image: Image.gz-dtb + + - name: "Post build to Telegram" + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_CHAT_ID }} + token: ${{ secrets.TELEGRAM_BOT_TOKEN }} + message: Kernel is built!, took ${{ steps.build.outputs.elapsed_time }} seconds. + document: ${{ steps.build.outputs.outfile }} + + - name: "Alert failed build" + uses: appleboy/telegram-action@master + if: ${{ failure() }} + with: + to: ${{ secrets.TELEGRAM_CHAT_ID }} + token: ${{ secrets.TELEGRAM_BOT_TOKEN }} + message: Failed building kernel, check action for more info.