2023-07-07 23:52:20 -03:00
|
|
|
name: Build Kernel
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-06-04 19:03:13 -03:00
|
|
|
runs-on: ubuntu-24.04
|
2023-07-07 23:52:20 -03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@main
|
|
|
|
|
|
|
|
- name: Setup timezone
|
|
|
|
uses: szenius/set-timezone@master
|
|
|
|
with:
|
|
|
|
timezoneLinux: "America/Sao_Paulo"
|
|
|
|
|
|
|
|
- name: Run build script
|
|
|
|
run: |
|
2024-06-10 21:47:29 -03:00
|
|
|
export KBUILD_BUILD_USER=nobody
|
|
|
|
export KBUILD_BUILD_HOST=android-build
|
2023-07-07 23:52:20 -03:00
|
|
|
source build.sh
|
|
|
|
echo "ZIPNAME=${ZIPNAME}" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Setup build date
|
|
|
|
run: echo "BUILD_DATE=$(date '+%H:%M %d/%m/%Y')" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Git variables
|
|
|
|
run: |
|
|
|
|
HEAD="$(git rev-parse HEAD)"
|
|
|
|
HEAD_COMMIT="https://github.com/rd-stuffs/msm-4.14/commit/$HEAD"
|
|
|
|
echo "HEAD_COMMIT=${HEAD_COMMIT}" >> $GITHUB_ENV
|
|
|
|
|
2024-06-09 23:03:36 -03:00
|
|
|
- name: Upload build artifact
|
|
|
|
uses: actions/upload-artifact@main
|
|
|
|
with:
|
|
|
|
name: my-artifact
|
|
|
|
path: ${{ env.ZIPNAME }}
|
|
|
|
|
2023-07-07 23:52:20 -03:00
|
|
|
- name: Upload to Telegram
|
|
|
|
uses: appleboy/telegram-action@master
|
|
|
|
with:
|
|
|
|
to: ${{ secrets.TELEGRAM_CHAT_ID }}
|
|
|
|
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
|
|
|
document: ${{ env.ZIPNAME }}
|
|
|
|
message: |
|
|
|
|
${{ env.BUILD_DATE }}
|
|
|
|
|
|
|
|
${{ env.HEAD_COMMIT }}
|