buildtest/.github/workflows/test.yaml

33 lines
1.1 KiB
YAML
Raw Normal View History

2024-10-25 01:47:47 +08:00
name: Build
on: push
jobs:
2024-10-25 07:19:57 +08:00
build:
runs-on: ubuntu-latest
2024-10-26 23:02:36 +08:00
env:
O: out
ARCH: arm64
CROSS_COMPILE: aarch64-linux-gnu-
CC: clang
CROSS_COMPILE_COMPAT: arm-linux-gnueabi-
2024-10-25 07:19:57 +08:00
steps:
- name: 测试
run: |
2024-10-25 07:25:33 +08:00
sudo apt update && sudo apt -y dist-upgrade
2024-10-25 07:43:06 +08:00
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
2024-10-26 20:53:05 +08:00
git clone https://github.com/mondrian-development/android_kernel_xiaomi_mondrian
2024-10-25 07:25:33 +08:00
ls -al
2024-10-25 07:35:30 +08:00
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
2024-10-26 23:03:59 +08:00
pwd
ls -al
2024-10-26 23:02:36 +08:00
cd $GITHUB_WORKSPACE
cd android_kernel_xiaomi_mondrian
mkdir out
make -j30 vendor/mondrian_GKI.config
make -j35
2024-10-25 07:35:30 +08:00