|
|
@@ -48,6 +48,10 @@ on:
|
|
|
description: "Use repo for downloading kernel source"
|
|
|
type: boolean
|
|
|
default: true
|
|
|
+ use_latest_commits:
|
|
|
+ description: "Use branch tip for KernelSU and SUSFS instead of pinned commits"
|
|
|
+ type: boolean
|
|
|
+ default: true
|
|
|
test_release_notes:
|
|
|
description: "Test release notes only"
|
|
|
type: boolean
|
|
|
@@ -61,6 +65,7 @@ jobs:
|
|
|
config_file: .github/config/android12-5.10.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
build-android13-5-10:
|
|
|
@@ -70,6 +75,7 @@ jobs:
|
|
|
config_file: .github/config/android13-5.10.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
build-android13-5-15:
|
|
|
@@ -79,6 +85,7 @@ jobs:
|
|
|
config_file: .github/config/android13-5.15.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
build-android14-5-15:
|
|
|
@@ -88,6 +95,7 @@ jobs:
|
|
|
config_file: .github/config/android14-5.15.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
build-android14-6-1:
|
|
|
@@ -97,6 +105,7 @@ jobs:
|
|
|
config_file: .github/config/android14-6.1.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
build-android15-6-6:
|
|
|
@@ -106,6 +115,7 @@ jobs:
|
|
|
config_file: .github/config/android15-6.6.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
build-android16-6-12:
|
|
|
@@ -115,6 +125,7 @@ jobs:
|
|
|
config_file: .github/config/android16-6.12.json
|
|
|
feature_set: ${{ inputs.feature_set || 'FULL' }}
|
|
|
use_repo: ${{ inputs.use_repo }}
|
|
|
+ use_latest_commits: ${{ inputs.use_latest_commits }}
|
|
|
secrets: inherit
|
|
|
|
|
|
rej:
|
|
|
@@ -137,7 +148,7 @@ jobs:
|
|
|
uses: actions/download-artifact@v7
|
|
|
with:
|
|
|
path: ./downloaded-artifacts
|
|
|
- pattern: '*-Normal-Rejects'
|
|
|
+ pattern: '*-Rejects'
|
|
|
merge-multiple: false
|
|
|
|
|
|
- name: Process Reject Artifacts
|
|
|
@@ -168,18 +179,28 @@ jobs:
|
|
|
done
|
|
|
|
|
|
# Zip and upload if we found anything
|
|
|
- if [ "$(ls -A aio-rejects)" ]; then
|
|
|
+ KSUN_BRANCH="dev"
|
|
|
# Create a single zip of all rejects
|
|
|
- cd aio-rejects
|
|
|
- zip -r -q -9 ../AIO-REJ.zip .
|
|
|
- cd ..
|
|
|
+ if [ "${{ inputs.use_latest_commits }}" = "true" ]; then
|
|
|
+ echo "Cloning KernelSU-Next from full branch tip: $KSUN_BRANCH"
|
|
|
+ git clone --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ else
|
|
|
+ echo "Cloning KernelSU-Next from branch: $KSUN_BRANCH"
|
|
|
+ git clone --depth=1 --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ fi
|
|
|
else
|
|
|
echo "No rejects found to upload."
|
|
|
fi
|
|
|
-
|
|
|
- - name: Rejects Summary
|
|
|
- run: |
|
|
|
- echo "Reject artifacts were collected locally only and are not uploaded." >> "$GITHUB_STEP_SUMMARY"
|
|
|
+ if [ "${{ inputs.use_latest_commits }}" = "true" ]; then
|
|
|
+ KSUN_COMMIT=$(git rev-parse HEAD)
|
|
|
+ else
|
|
|
+ KSUN_COMMIT=$(jq -er '.kernelsu.dev' "$COMMITS_JSON_PATH")
|
|
|
+
|
|
|
+ # Checkout the specific commit
|
|
|
+ echo "Checking out commit: $KSUN_COMMIT"
|
|
|
+ git fetch --depth=50 origin "$KSUN_COMMIT"
|
|
|
+ git checkout "$KSUN_COMMIT"
|
|
|
+ fi
|
|
|
|
|
|
- name: Upload AIO-REJ Artifact
|
|
|
uses: actions/upload-artifact@v7
|
|
|
@@ -198,7 +219,6 @@ jobs:
|
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
RELEASE_NOTES: .github/config/RELEASE_NOTES.md
|
|
|
COMMITS_JSON: .github/config/commits.json
|
|
|
-
|
|
|
steps:
|
|
|
- name: Checkout code
|
|
|
uses: actions/checkout@v5
|
|
|
@@ -210,20 +230,27 @@ jobs:
|
|
|
run: |
|
|
|
set -euo pipefail
|
|
|
|
|
|
- # Extract KernelSU commit and branch from commits config
|
|
|
- KSUN_COMMIT=$(jq -er '.kernelsu.dev' "$COMMITS_JSON_PATH")
|
|
|
KSUN_BRANCH="dev"
|
|
|
|
|
|
- # Clone KernelSU-Next on the specified branch
|
|
|
- echo "Cloning KernelSU-Next from branch: $KSUN_BRANCH"
|
|
|
- git clone --depth=1 --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ if [ "${{ inputs.use_latest_commits }}" = "true" ]; then
|
|
|
+ echo "Cloning KernelSU-Next from full branch tip: $KSUN_BRANCH"
|
|
|
+ git clone --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ else
|
|
|
+ echo "Cloning KernelSU-Next from branch: $KSUN_BRANCH"
|
|
|
+ git clone --depth=1 --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ fi
|
|
|
|
|
|
cd /tmp/kernelsu-next
|
|
|
|
|
|
- # Checkout the specific commit
|
|
|
- echo "Checking out commit: $KSUN_COMMIT"
|
|
|
- git fetch --depth=50 origin "$KSUN_COMMIT"
|
|
|
- git checkout "$KSUN_COMMIT"
|
|
|
+ if [ "${{ inputs.use_latest_commits }}" = "true" ]; then
|
|
|
+ KSUN_COMMIT=$(git rev-parse HEAD)
|
|
|
+ else
|
|
|
+ # Extract KernelSU commit and branch from commits config
|
|
|
+ KSUN_COMMIT=$(jq -er '.kernelsu.dev' "$COMMITS_JSON_PATH")
|
|
|
+ echo "Checking out commit: $KSUN_COMMIT"
|
|
|
+ git fetch --depth=50 origin "$KSUN_COMMIT"
|
|
|
+ git checkout "$KSUN_COMMIT"
|
|
|
+ fi
|
|
|
|
|
|
# Extract version info
|
|
|
COMMITS_COUNT=$(git rev-list --count HEAD)
|
|
|
@@ -393,20 +420,27 @@ jobs:
|
|
|
run: |
|
|
|
set -euo pipefail
|
|
|
|
|
|
- # Extract KernelSU commit and branch from commits config
|
|
|
- KSUN_COMMIT=$(jq -er '.kernelsu.dev' "$COMMITS_JSON_PATH")
|
|
|
KSUN_BRANCH="dev"
|
|
|
|
|
|
- # Clone KernelSU-Next on the specified branch
|
|
|
- echo "Cloning KernelSU-Next from branch: $KSUN_BRANCH"
|
|
|
- git clone --depth=1 --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ if [ "${{ inputs.use_latest_commits }}" = "true" ]; then
|
|
|
+ echo "Cloning KernelSU-Next from full branch tip: $KSUN_BRANCH"
|
|
|
+ git clone --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ else
|
|
|
+ echo "Cloning KernelSU-Next from branch: $KSUN_BRANCH"
|
|
|
+ git clone --depth=1 --branch "$KSUN_BRANCH" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
|
|
|
+ fi
|
|
|
|
|
|
cd /tmp/kernelsu-next
|
|
|
|
|
|
- # Checkout the specific commit
|
|
|
- echo "Checking out commit: $KSUN_COMMIT"
|
|
|
- git fetch --depth=50 origin "$KSUN_COMMIT"
|
|
|
- git checkout "$KSUN_COMMIT"
|
|
|
+ if [ "${{ inputs.use_latest_commits }}" = "true" ]; then
|
|
|
+ KSUN_COMMIT=$(git rev-parse HEAD)
|
|
|
+ else
|
|
|
+ # Extract KernelSU commit and branch from commits config
|
|
|
+ KSUN_COMMIT=$(jq -er '.kernelsu.dev' "$COMMITS_JSON_PATH")
|
|
|
+ echo "Checking out commit: $KSUN_COMMIT"
|
|
|
+ git fetch --depth=50 origin "$KSUN_COMMIT"
|
|
|
+ git checkout "$KSUN_COMMIT"
|
|
|
+ fi
|
|
|
|
|
|
# Extract version info
|
|
|
COMMITS_COUNT=$(git rev-list --count HEAD)
|