Test #4
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: 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 -p $GITHUB_WORKSPACE/kernel_workspace | |
| cd $GITHUB_WORKSPACE/kernel_workspace | |
| repo init -u https://github.com/OnePlusOSS/kernel_manifest.git -b refs/heads/oneplus/sm8650 -m oneplus12_v.xml | |
| mv $GITHUB_WORKSPACE/patches/op12_v.xml $GITHUB_WORKSPACE/kernel_workspace/.repo/manifests/oneplus12_v.xml | |
| repo sync | |
| - name: Build kernel | |
| run: | | |
| cd $GITHUB_WORKSPACE/kernel_workspace | |
| ./kernel_platform/oplus/build/oplus_build_kernel.sh pineapple gki | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: kernel-build-artifacts | |
| path: $GITHUB_WORKSPACE/kernel_workspace/out/* |