Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.yml #1

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,25 @@ jobs:

- name: "🌟 Clone kernel source => (${{ env.KERNEL_REPO }})"
run: |
git clone --recursive --depth=1 -j $(nproc) --branch $KERNEL_BRANCH $KERNEL_REPO $KERNEL_NAME
git clone --recursive --depth=1 -j $(nproc) https://github.com/Abdullashakee/kernel_xiaomi_vayu ./kernel_xiaomi_vayu

echo "🤔 Clone kernel source => ($KERNEL_REPO)"

- name: 🔢 Extract kernel version
working-directory: ${{ env.KERNEL_NAME }}
run: |
kernel_version=$(grep "^VERSION = " Makefile | cut -d ' ' -f 3)
patchlevel=$(grep "^PATCHLEVEL = " Makefile | cut -d ' ' -f 3)
sublevel=$(grep "^SUBLEVEL = " Makefile | cut -d ' ' -f 3)
local_kernel_version="${kernel_version}.${patchlevel}.${sublevel}"
echo "Kernel Version: $local_kernel_version"
echo "KERNEL_VERSION=${local_kernel_version}" >> $GITHUB_ENV
echo "🤔 Clone kernel source => ($KERNEL_REPO)"

- name: Create SkylineKernel directory
run: mkdir -p /home/runner/work/android_kernel_releases/android_kernel_releases/SkylineKernel
- name: Execute script
run: |
kernel_version=$(grep "^VERSION = " Makefile | cut -d ' ' -f 3)
patchlevel=$(grep "^PATCHLEVEL = " Makefile | cut -d ' ' -f 3)
sublevel=$(grep "^SUBLEVEL = " Makefile | cut -d ' ' -f 3)
local_kernel_version="${kernel_version}.${patchlevel}.${sublevel}"
echo "Kernel Version: $local_kernel_version"
echo "KERNEL_VERSION=${local_kernel_version}" >> $GITHUB_ENV
shell: bash
working-directory: /home/runner/work/android_kernel_releases/android_kernel_releases/SkylineKernel


- name: "💫 Get toolchains"
env:
toolchains: "${{ toJSON(matrix.repos.toolchains) }}"
Expand Down