-
-
Notifications
You must be signed in to change notification settings - Fork 79
69 lines (56 loc) · 1.98 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [a52sxq, m52xq]
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Free disk space
uses: rokibhasansagar/slimhub_actions@main
- name: Set up build environment
run: |
sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt install -yq \
attr ccache clang golang libbrotli-dev \
libgtest-dev libprotobuf-dev libunwind-dev libusb-1.0-0-dev libzstd-dev \
linux-modules-extra-$(uname -r) lld ninja-build protobuf-compiler zipalign
sudo modprobe erofs f2fs
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
echo -n "${{ secrets.PLATFORM_KEY_PK8 }}" | base64 --decode > unica/security/unica_platform.pk8
echo -n "${{ secrets.PLATFORM_KEY_PEM }}" | base64 --decode > unica/security/unica_platform.x509.pem
- name: Set up CMake
uses: jwlawson/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: Build dependencies
run: source ./buildenv.sh ${{ matrix.target }}
- name: Download stock firmwares
run: |
source ./buildenv.sh ${{ matrix.target }}
./scripts/download_fw.sh
- name: Extract stock firmwares
run: |
source ./buildenv.sh ${{ matrix.target }}
./scripts/extract_fw.sh
- name: Build ROM
run: |
source ./buildenv.sh ${{ matrix.target }}
./scripts/make_rom.sh --no-rom-zip