Skip to content

Build Test Kernel

Build Test Kernel #6

Workflow file for this run

name: Build Test Kernel
on:
workflow_dispatch:
jobs:
build_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [SM-A546E, SM-A546B]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up build environment
run: |
sudo apt update && sudo apt upgrade
sudo apt-get remove --purge -y "php*" "dotnet*" "mysql*" "clang*" "google*"
sudo apt autoremove -y
sudo apt install -yq tar \
attr libelf-dev dwarves rsync libbrotli-dev \
libgtest-dev libprotobuf-dev libunwind-dev libusb-1.0-0-dev libzstd-dev libc6-dev \
linux-modules-extra-$(uname -r) build-essential p7zip-full libarchive-tools
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Fetch ToolChain
run: |
mkdir -p ~/Prebuilts
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86 ~/Prebuilts/gl-clang
rm -rf ~/Prebuilts/gl-clang/clang-3* ~/Prebuilts/gl-clang/clang-r4* ~/Prebuilts/gl-clang/clang-r51* ~/Prebuilts/gl-clang/.git
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/gas/linux-x86 ~/Prebuilts/gas/linux-x86
rm -rf ~/Prebuilts/gas/linux-x86/.git
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/build-tools ~/Prebuilts/build-tools
rm -rf ~/Prebuilts/build-tools/.git
- name: Fetch AnyKernel3
run: |
git clone --branch a54x https://github.com/Vaz15k/AnyKernel3.git ~/AnyKernel3
mkdir -p ~/files
- name: Build Kernel Clean
run: |
./build_kernel.sh ${{ matrix.target }}
cp ~/AnyKernel3/Squeak* ~/files
- name: Upload Test Build ${{ matrix.target }}
uses: actions/upload-artifact@v4
with:
name: Squeak-${{ matrix.target }}
path: ~/files/Squeak*