-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 2.04 KB
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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*