forked from SonicBSV/android_kernel_xiaomi_markw-4.9
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: markw Company CI! | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
DEPLOY_DEVICE_TYPE: | ||
description: 'Deploy Device Type (COURBET/DAVINCI/PHOENIX/SWEET/markw)' | ||
required: true | ||
DEPLOY_TAG_TYPE: | ||
description: 'Deploy Kernel version tag (example: v1 or v2)' | ||
required: true | ||
|
||
env: | ||
CHATID: ${{ secrets.CHAT_ID }} | ||
API_BOT: ${{ secrets.BOT_API }} | ||
DEVICE_TYPE: ${{ github.event.inputs.DEPLOY_DEVICE_TYPE }} | ||
KERNEL_VERSION_TAG: ${{ github.event.inputs.DEPLOY_TAG_TYPE }} | ||
|
||
jobs: | ||
SHOWCI: | ||
if: "(! contains(toJSON(github.event.commits.*.message), '[skip-ci]'))" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
|
||
steps: | ||
- name: Creating Env! | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setting up Env! | ||
run: | | ||
sudo -E apt-get -qq update | ||
sudo -E apt-get -qq install git make bc bison \ | ||
openssl curl zip kmod cpio flex libelf-dev \ | ||
libssl-dev libtfm-dev wget device-tree-compiler \ | ||
ca-certificates python3 python2 binutils \ | ||
binutils-aarch64-linux-gnu binutils-arm-linux-gnueabi | ||
- name: Export Vars | ||
run: | | ||
if [[ ${DEVICE_TYPE} == "${{ github.event.inputs.DEPLOY_DEVICE_TYPE }}" ]]; then echo "DEVICE_TYPE=${{ github.event.inputs.DEPLOY_DEVICE_TYPE }}" >> $GITHUB_ENV;fi | ||
if [[ ${KERNEL_VERSION_TAG} == "${{ github.event.inputs.DEPLOY_TAG_TYPE }}" ]]; then echo "KERNEL_TAG=${{ github.event.inputs.DEPLOY_TAG_TYPE }}" >> $GITHUB_ENV;fi | ||
- name: Building Kernel.. | ||
run: | | ||
curl https://raw.githubusercontent.com/mozzaru/script/main/kernel.sh > kernel.sh | ||
chmod +x kernel.sh | ||
bash kernel.sh | ||
shell: bash |