buildtest/.github/workflows/test.yaml
forever d150b7e0b5
Some checks failed
Build / build (push) Failing after 19m26s
更新 .github/workflows/test.yaml
2024-10-28 00:41:38 +08:00

31 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
cd $GITHUB_WORKSPACE
cd android_kernel_xiaomi_mondrian
mkdir out
PATH=$PATH:/root/toolchains/neutron-clang/bin make -j30 gki_defconfig
PATH=$PATH:/root/toolchains/neutron-clang/bin make -j35