Build Kernel on GitHub Actions #14
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: Build Kernel on GitHub Actions | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Setup tmate session | |
| uses: mxschmitt/action-tmate@v3 | |
| with: | |
| detached: true | |
| - name: Update environment | |
| run: sudo apt update -y | |
| - name: Install Dependencies | |
| run: sudo apt install -y git build-essential zip unzip curl | |
| - name: Get script | |
| run: curl -o build_kernel.sh -L https://raw.githubusercontent.com/Joe7500/valeryn_xiaomi_sm6115/refs/heads/build-actions/build_kernel.sh | |
| - name: Build kernel | |
| run: bash build_kernel.sh vanilla ksun1 ksun3 | |
| continue-on-error: true | |
| - name: Upload to Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: | | |
| 4.19*.zip | |
| *kernel-prebuilt*.tar.xz | |
| name: kernel chime ${{ github.run_id }} | |
| tag_name: ${{ github.run_id }} | |
| body: automated upload via manual build trigger | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |