Test #11
This file contains hidden or 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
| name: Test | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "AzusaHana" | |
| git config --global user.email "chenyue2330@gmail.com" | |
| - name: Clean up disk space | |
| run: | | |
| sudo apt-get clean | |
| sudo rm -rf /usr/share/dotnet /etc/mysql /var/lib/mysql | |
| sudo rm -rf /usr/local/lib/android | |
| df -h | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y python3 git curl | |
| - name: Install repo tool | |
| run: | | |
| curl https://storage.googleapis.com/git-repo-downloads/repo > ~/repo | |
| chmod a+x ~/repo | |
| sudo mv ~/repo /usr/local/bin/repo | |
| - name: Initialize repo and sync | |
| run: | | |
| mkdir kernel_workspace && cd kernel_workspace | |
| repo init -u https://github.com/OnePlusOSS/kernel_manifest.git -b refs/heads/oneplus/sm8650 -m oneplus12_v.xml --depth=1 | |
| repo sync | |
| rm kernel_platform/common/android/abi_gki_protected_exports_* || echo "No protected exports!" | |
| - name: Set up KernelSU | |
| run: | | |
| cd kernel_workspace/kernel_platform/common | |
| curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s main | |
| - name: Build kernel | |
| run: | | |
| cd kernel_workspace | |
| ./kernel_platform/oplus/build/oplus_build_kernel.sh pineapple gki | |
| - name: Make AnyKernel3 | |
| run: | | |
| git clone https://github.com/Kernel-SU/AnyKernel3 --depth=1 | |
| rm -rf ./AnyKernel3/.git | |
| cp kernel_workspace/kernel_platform/out/msm-kernel-pineapple-gki/dist/Image ./AnyKernel3/ | |
| - name: Upload AnyKernel3 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AnyKernel3-Test | |
| path: ./AnyKernel3/* | |
| - name: Upload kernel Image | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Image | |
| path: kernel_workspace/kernel_platform/out/msm-kernel-pineapple-gki/dist/Image | |
| - name: Upload boot.img | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: boot.img | |
| path: kernel_workspace/kernel_platform/out/msm-kernel-pineapple-gki/dist/boot.img |