diff --git a/.github/workflows/test_compile.yml b/.github/workflows/android_kernel_compile.yml similarity index 97% rename from .github/workflows/test_compile.yml rename to .github/workflows/android_kernel_compile.yml index 5b01cf6..61b213c 100644 --- a/.github/workflows/test_compile.yml +++ b/.github/workflows/android_kernel_compile.yml @@ -1,4 +1,4 @@ -name: Compile Kernel +name: Compile Android Kernel on: [push, pull_request] diff --git a/.github/workflows/mainline_kernel_compile.yml b/.github/workflows/mainline_kernel_compile.yml new file mode 100644 index 0000000..42950d3 --- /dev/null +++ b/.github/workflows/mainline_kernel_compile.yml @@ -0,0 +1,39 @@ +name: Compile Mainline Kernel +on: + [push, pull_request] + +jobs: + compile-kernel: + runs-on: ubuntu-latest + defaults: + run: + shell: bash + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Update the system + run: | + sudo apt update -y + + - name: Upgrade the system + run: | + sudo apt upgrade -y + + - name: Install dependencies + run: | + sudo apt -y install bc build-essential zip curl libstdc++6 git wget python3 gcc clang libssl-dev rsync flex bison device-tree-compiler sudo + + - name: Install additional dependencies + run: | + curl https://raw.githubusercontent.com/akhilnarang/scripts/master/setup/android_build_env.sh | sh + + - name: Install sworkflow + run: | + git clone https://github.com/danascape/sworkflow $HOME/sworkflow + ./setup.sh i + + - name: Compile Kernel + run: | + bash tests/compile_test.sh