diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b82a0f..3bfcf5e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,11 @@ on: # [push] # - cron: 0 8 * * 5 # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + inputs: + COMPILER: + description: 'compilers used' + required: true + default: 'NeutronClang' watch: types: [started] @@ -21,7 +26,7 @@ env: REPO: TelegramAt25/android_kernel_xiaomi_selene RUN_NUM: ${{ github.run_number }}_${{ github.run_attempt }} KERNEL_BRANCH: thirteen - SCRIPTS: EvaGCC + COMPILERS: ${{ github.event.inputs.COMPILER }} TZ: Asia/Ho_Chi_Minh jobs: diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 7f50562..ffbf919 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -9,10 +9,10 @@ apt-get install llvm lld bc bison ca-certificates curl flex gcc git libc6-dev \ bash tg_utils.sh msg "gh $RUN_NUM: cloning kernel source, repo: $REPO" git clone --depth=1 https://github.com/$REPO -b $KERNEL_BRANCH kernel -bash tg_utils.sh msg "gh $RUN_NUM: running compilation script(s): $SCRIPTS" +bash tg_utils.sh msg "gh $RUN_NUM: running compilation script(s): $COMPILERS" cd kernel -bash ../build.sh "$SCRIPTS" +bash ../build.sh "$COMPILERS" ZIP=$(echo *.zip) if [[ -e $ZIP ]]; then