Skip to content

Test

Test #2

Workflow file for this run

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
mv $GITHUB_WORKSPACE/patches/op12_v.xml $GITHUB_WORKSPACE/kernel_workspace/.repo/manifests
repo init -m op12_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/*