33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Build
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
O: out
|
|
ARCH: arm64
|
|
CROSS_COMPILE: aarch64-linux-gnu-
|
|
CC: clang
|
|
CROSS_COMPILE_COMPAT: arm-linux-gnueabi-
|
|
steps:
|
|
- name: 测试
|
|
run: |
|
|
sudo apt update && sudo apt -y dist-upgrade
|
|
sudo apt install -y gcc g++ make texinfo texlive bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32readline-dev lib32z1-dev liblz4-tool libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev unzip language-pack-zh-hans
|
|
git clone https://github.com/mondrian-development/android_kernel_xiaomi_mondrian
|
|
ls -al
|
|
pwd
|
|
mkdir -p "$HOME/toolchains/neutron-clang"
|
|
cd "$HOME/toolchains/neutron-clang"
|
|
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") -S
|
|
pwd
|
|
ls -al
|
|
cd $GITHUB_WORKSPACE
|
|
cd android_kernel_xiaomi_mondrian
|
|
mkdir out
|
|
make -j30 vendor/mondrian_GKI.config
|
|
make -j35
|
|
|
|
|