Skip to content

Commit

Permalink
setup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzaru committed Dec 23, 2023
1 parent 607aab7 commit c5fefc1
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/markw-company-ci.yml
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

0 comments on commit c5fefc1

Please sign in to comment.