2121 description : " Compiler optimization level"
2222 required : true
2323 type : choice
24- options :
25- - O2
26- - O3
24+ options : [O2, O3]
2725 default : O2
2826 android12-5_10_susfs_branch_or_commit :
2927 description : ' Enter SusFS Branch or commit hash for android12-5.10'
5149 default : ' '
5250
5351jobs :
54- build-batch-1 :
55- name : build-batch-1 (${{ matrix.model }}, ${{ matrix.soc }}, ${{ matrix.branch }}, ${{ matrix.manifest }}, ${{ matrix.android_version }}, ${{ matrix.kernel_version }}, ${{ inputs.ksun_branch }})
52+ build :
53+ name : build (${{ matrix.model }}, ${{ matrix.soc }}, ${{ matrix.branch }}, ${{ matrix.manifest }}, ${{ matrix.android_version }}, ${{ matrix.kernel_version }}, ${{ inputs.ksun_branch }})
54+ runs-on : ubuntu-latest
5655 strategy :
5756 fail-fast : false
5857 matrix :
5958 include :
60- - model : OP11
61- soc : kalama
62- branch : oneplus/sm8550
63- manifest : oneplus_11_v.xml
64- android_version : android13
65- kernel_version : ' 5.15'
66- runs-on : ubuntu-latest
59+ - model : OP11
60+ soc : kalama
61+ branch : oneplus/sm8550
62+ manifest : oneplus_11_v.xml
63+ android_version : android13
64+ kernel_version : ' 5.15'
65+
6766 steps :
68- - name : Select Appropriate SusFS Branch
69- id : get-susfs-branch
67+ - name : Resolve SUSFS branch from inputs
68+ id : susfs
69+ shell : bash
7070 run : |
71- KERNEL_STRING="${{ matrix.android_version }}-${{ matrix.kernel_version }}"
72-
73- SUSFS_BRANCH=""
74-
75- case "$KERNEL_STRING" in
76- "android12-5.10")
77- SUSFS_BRANCH="${{ inputs.android12-5_10_susfs_branch_or_commit }}"
78- ;;
79- "android13-5.10")
80- SUSFS_BRANCH="${{ inputs.android13-5_10_susfs_branch_or_commit }}"
81- ;;
82- "android13-5.15")
83- SUSFS_BRANCH="${{ inputs.android13-5_15_susfs_branch_or_commit }}"
84- ;;
85- "android14-5.15")
86- SUSFS_BRANCH="${{ inputs.android14-5_15_susfs_branch_or_commit }}"
87- ;;
88- "android14-6.1")
89- SUSFS_BRANCH="${{ inputs.android14-6_1_susfs_branch_or_commit }}"
90- ;;
91- "android15-6.6")
92- SUSFS_BRANCH="${{ inputs.android15-6_6_susfs_branch_or_commit }}"
93- ;;
94- *)
95- echo "Invalid kernel version or unsupported: $KERNEL_STRING"
96- exit 1
97- ;;
98- esac
99-
100- echo "susfs_branch=$SUSFS_BRANCH" >> $GITHUB_OUTPUT
71+ set -euo pipefail
72+ key="${{ matrix.android_version }}-${{ matrix.kernel_version }}"
73+ declare -A map=(
74+ ["android12-5.10"]="${{ inputs.android12-5_10_susfs_branch_or_commit }}"
75+ ["android13-5.10"]="${{ inputs.android13-5_10_susfs_branch_or_commit }}"
76+ ["android13-5.15"]="${{ inputs.android13-5_15_susfs_branch_or_commit }}"
77+ ["android14-5.15"]="${{ inputs.android14-5_15_susfs_branch_or_commit }}"
78+ ["android14-6.1"]="${{ inputs.android14-6_1_susfs_branch_or_commit }}"
79+ ["android15-6.6"]="${{ inputs.android15-6_6_susfs_branch_or_commit }}"
80+ )
81+ # Only validate mapping presence; allow empty string value to be passed through.
82+ if [[ -z "${map[$key]+_exists}" ]]; then
83+ echo "Unsupported combo (no mapping): $key" >&2
84+ exit 1
85+ fi
86+ echo "susfs_branch=${map[$key]}" >> "$GITHUB_OUTPUT"
10187
10288 - name : Checkout Code
103- uses : actions/checkout@v3
89+ uses : actions/checkout@v4
90+ with :
91+ fetch-depth : 1
10492
10593 - name : Build Kernel
10694 uses : WildKernels/OnePlus_KernelSU_SUSFS/.github/actions@main
@@ -110,21 +98,20 @@ jobs:
11098 branch : ${{ matrix.branch }}
11199 manifest : ${{ matrix.manifest }}
112100 ksun_branch : ${{ inputs.ksun_branch }}
113- susfs_commit_hash_or_branch : ${{ steps.get- susfs-branch .outputs.susfs_branch }}
101+ susfs_commit_hash_or_branch : ${{ steps.susfs.outputs.susfs_branch }}
114102 optimize_level : ${{ inputs.optimize_level }}
115103
116104 trigger-release :
117- needs :
118- - build-batch-1
105+ needs : [build]
119106 runs-on : ubuntu-latest
120107 if : ${{ inputs.make_release }}
121108 env :
122109 REPO_OWNER : ${{ github.repository_owner }}
123110 REPO_NAME : ${{ github.event.repository.name }}
124111 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
125- RELEASE_NAME : ' *TEST BUILD* OnePlus Kernels With KernelSU Next & SUSFS v1.5.11 *TEST BUILD*'
112+ RELEASE_NAME : ' *TEST BUILD* OnePlus Kernels With KernelSU Next & SUSFS v1.5.12 *TEST BUILD*'
126113 RELEASE_NOTES : |
127- This release contains KernelSU Next and SUSFS v1.5.11
114+ This release contains KernelSU Next and SUSFS v1.5.12
128115
129116 Module:
130117 -> https://github.com/sidex15/ksu_module_susfs
@@ -134,7 +121,7 @@ jobs:
134121
135122 Features:
136123 [+] KernelSU-Next / WildKSU Manager Support
137- [+] SUSFS v1.5.11
124+ [+] SUSFS v1.5.12
138125 [+] Wireguard Support
139126 [+] Magic Mount Support
140127 [+] Ptrace message leak fix for kernels < 5.16
@@ -143,14 +130,15 @@ jobs:
143130 [+] BBR v1 Support.
144131 [+] HMBIRD scx support for OnePlus 13 & OnePlus Ace 5 Pro.
145132 [+] Baseband Guard Support (BBG).
133+ [+] xx_maps hide.
146134
147135 steps :
148136 - name : Checkout code
149137 uses : actions/checkout@v3
150138
151139 - name : Generate and Create New Tag
152140 run : |
153- BASE_TAG="v1.5.11 -r0"
141+ BASE_TAG="v1.5.12 -r0"
154142 LATEST_TAG=$(gh api repos/$REPO_OWNER/$REPO_NAME/tags --jq '.[0].name')
155143 if [ -z "$LATEST_TAG" ]; then
156144 LATEST_TAG="$BASE_TAG"
@@ -194,4 +182,4 @@ jobs:
194182 - name : Display Files Uploaded
195183 run : |
196184 echo "GitHub release created with the following files:"
197- ls ./downloaded-artifacts/**/*
185+ ls ./downloaded-artifacts/**/*
0 commit comments