Skip to content

Commit

Permalink
Update MiuiQ.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roniwae authored Dec 24, 2023
1 parent e3418f6 commit 2855e13
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/MiuiQ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup environment
run: |
git config --global init.defaultBranch MiuiQ
sudo apt install python2 -y
echo "BUILD_TIME=$(TZ=Asia/Jakarta date "+%H-%M_%d-%m-%Y")" >> $GITHUB_ENV
echo "KERNEL_VERSION="$(cat arch/arm64/configs/vendor/ginkgo-perf_defconfig | grep "CONFIG_LOCALVERSION\=" | sed -r 's/.*"(.+)".*/\1/' | sed 's/^.//')"" >> $GITHUB_ENV
- name: Pull toolchain
run: |
mkdir clang && git clone -q https://github.com/roniwae/RastaMod69-Clang.git clang --depth=1
- name: Pull kernel source
run: |
git clone --depth=1 https://github.com/roniwae/MiuiKernel.git -b MiuiQ kernel-source
echo "KERNEL_VERSION="$(cat kernel-source/arch/arm64/configs/vendor/ginkgo-perf_defconfig | grep "CONFIG_LOCALVERSION\=" | sed -r 's/.*"(.+)".*/\1/' | sed 's/^.//')"" >> $GITHUB_ENV
- name: Build kernel
run: |
export KBUILD_BUILD_USER="@roni_saja"
Expand All @@ -42,8 +41,6 @@ jobs:
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE=$GITHUB_WORKSPACE/clang/bin/aarch64-linux-gnu- \
CROSS_COMPILE_ARM32=$GITHUB_WORKSPACE/clang/bin/arm-linux-gnueabi- "
cd kernel-source
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
make ${args} vendor/ginkgo-perf_defconfig
make -j$(($(getconf _NPROCESSORS_ONLN) * 2)) ${args}
- name: Package kernel
Expand Down

0 comments on commit 2855e13

Please sign in to comment.