10
10
11
11
jobs :
12
12
Read-configuration :
13
- name : 🏧 Parse *.config.json
13
+ name : ®️ Parse *.config.json
14
14
runs-on : ubuntu-latest
15
15
outputs :
16
16
CONFIGS : ${{ steps.generate-matrix.outputs.CONFIGS }}
17
17
BUILD_DATE : ${{ steps.generate-builddate.outputs.BUILDDATE }}
18
18
steps :
19
19
# This action checks-out your CONFIGSitory under $GITHUB_WORKSPACE, so your workflow can access it.
20
- - name : ♈ Checkout
20
+ - name : 🔴 Checkout
21
21
uses : actions/checkout@v4
22
22
23
23
# Match the configuration files in the CONFIGS directory, read the contents and merge them into an array.
24
- - name : ♉ Generate Matrix
24
+ - name : 🟠 Generate Matrix
25
25
id : generate-matrix
26
26
run : |
27
27
echo "CONFIGS<<EOF" >> $GITHUB_OUTPUT
28
28
jq -s '[.[][]]' TWRP/configs/*.config.json >> $GITHUB_OUTPUT
29
29
echo "EOF" >> $GITHUB_OUTPUT
30
30
31
31
# Set compile time.
32
- - name : ♊ Set builddate
32
+ - name : 🟡 Set builddate
33
33
id : generate-builddate
34
34
run : echo "BUILDDATE=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
35
35
36
36
Build-TWRP :
37
- name : 🛄 Build TWRP
37
+ name : ©️ Build TWRP
38
38
runs-on : ubuntu-latest
39
39
needs :
40
40
- Read-configuration
@@ -66,48 +66,49 @@ jobs:
66
66
CCACHE_DIR : " ${{ github.workspace }}/ccache"
67
67
steps :
68
68
# Clean up the workspace and make room for compilation
69
- - name : ♋ Cleanup
69
+ - name : ♈ Cleanup
70
70
uses : rokibhasansagar/slimhub_actions@main
71
+ with :
72
+ retain : " java_tools,android_sdk"
71
73
72
- - name : ♌ Prepare the build environment
74
+ - name : ♉ Prepare the build environment
73
75
run : |
74
76
cd ~
77
+ sudo apt update -y
75
78
sudo apt install git aria2 -y
76
79
git clone https://gitlab.com/OrangeFox/misc/scripts
77
80
cd scripts
78
81
sudo bash setup/android_build_env.sh
79
82
sed -i 's/cd -/cd ../g' setup/install_android_sdk.sh
80
83
sudo bash setup/install_android_sdk.sh
81
84
82
- - name : ♍ Sync OrangeFox sources and minimal manifest
85
+ - name : ♊ Sync OrangeFox sources and minimal manifest
83
86
run : |
84
87
git clone ${{ env.OF_SYNC_REPO }} sync
85
88
cd sync
86
89
./orangefox_sync.sh --branch ${{ env.OF_SYNC_BRANCH }} --path ${{ env.OF_LOCATION }}
87
90
88
- - name : ♎ Place device trees and kernel
91
+ - name : ♋ Place device trees and kernel
89
92
working-directory : ${{ env.OF_LOCATION }}
90
93
run : |
91
94
git clone --recursive --depth=1 -j $(nproc) --branch ${{ env.DEVICE_BRANCH }} ${{ env.DEVICE_REPO }} ${{ env.DEVICE_LOCATION }}
92
95
93
- - name : ♏ Set Swap Space
96
+ - name : ♌ Set Swap Space
94
97
uses : pierotofy/set-swap-space@master
95
98
with :
96
99
swap-size-gb : 12
97
100
98
- - name : ♐ Build it
101
+ - name : ♍ Build it
99
102
working-directory : ${{ env.OF_LOCATION }}
100
103
continue-on-error : true
101
104
run : |
102
105
set +e
103
106
source build/envsetup.sh
104
107
export ALLOW_MISSING_DEPENDENCIES=true
105
- export FOX_BUILD_DEVICE=thyme
106
- export LC_ALL="C"
107
108
set -e
108
- lunch ${{ env.DEVICE_MAKEFILE }}-eng && mka adbd ${{ env.DEVICE_BOOT_PARTITION }}image -j$(nproc --all)
109
+ lunch ${{ env.DEVICE_MAKEFILE }}-eng && mka adbd ${{ env.DEVICE_BOOT_PARTITION }}image
109
110
110
- - name : ♑ Take the OrangeFox build
111
+ - name : ♎ Take the OrangeFox build
111
112
uses : actions/upload-artifact@v3
112
113
with :
113
114
name : OrangeFox
@@ -116,7 +117,7 @@ jobs:
116
117
${{ env.OUT_DIR }}/target/product/${{ env.DEVICE_NAME }}/*${{ env.DEVICE_NAME }}.img
117
118
${{ env.OUT_DIR }}/target/product/${{ env.DEVICE_NAME }}/*${{ env.DEVICE_NAME }}.zip
118
119
119
- - name : ♒ Create GitHub Release => (${{ env.BUILD_DATE }})
120
+ - name : ♏ Create GitHub Release => (${{ env.BUILD_DATE }})
120
121
continue-on-error : true
121
122
uses : softprops/action-gh-release@v1
122
123
with :
0 commit comments