[skip ci]: 删掉本地配置sdk (#94)
* feat: Update string resources for clarity and consistency; simplify build manager workflow
* 使用gki-kernel-local.yml
* build-lkm-local.yml
* 修改为谷歌源
* 修改为清华源
* 修改max-size为16G
* Updating Vietnamese strings
* kernel: kpm: add compatibility for kernel 4.14 and lower (#76)
`thread_pid` is not defined in kernel 4.14 and lower, leading to compilation issue.
To fix this, use `pids[PIDTYPE_PID].pid` for kernel versions 4.14 and lower.
Else use `thread_pid` for kernel versions 4.19 and higher.
Reference: 107717913b/tracee/tracee.bpf.c (L354)
* 1
* 1
* 1
---------
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
Co-authored-by: KernelSUBot <bot@kernelsu.org>
Co-authored-by: sidex15 <24408329+sidex15@users.noreply.github.com>
Co-authored-by: build <123456@cnm.com>
This commit is contained in:
15
.github/workflows/build-manager-manual.yml
vendored
15
.github/workflows/build-manager-manual.yml
vendored
@@ -150,18 +150,6 @@ jobs:
|
|||||||
echo "${{ secrets.KEYSTORE }}" | base64 -d > key.jks
|
echo "${{ secrets.KEYSTORE }}" | base64 -d > key.jks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 21
|
|
||||||
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v4
|
|
||||||
|
|
||||||
- name: Setup Android SDK
|
|
||||||
uses: android-actions/setup-android@v3
|
|
||||||
|
|
||||||
- name: Download arm64 susfs
|
- name: Download arm64 susfs
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -213,6 +201,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: |
|
run: |
|
||||||
|
export ANDROID_HOME=/root/.android/sdk
|
||||||
|
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$PATH
|
||||||
{
|
{
|
||||||
echo 'org.gradle.parallel=true'
|
echo 'org.gradle.parallel=true'
|
||||||
echo 'org.gradle.vfs.watch=true'
|
echo 'org.gradle.vfs.watch=true'
|
||||||
@@ -221,6 +211,7 @@ jobs:
|
|||||||
} >> gradle.properties
|
} >> gradle.properties
|
||||||
sed -i 's/org.gradle.configuration-cache=true//g' gradle.properties
|
sed -i 's/org.gradle.configuration-cache=true//g' gradle.properties
|
||||||
./gradlew clean assembleRelease
|
./gradlew clean assembleRelease
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }}
|
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }}
|
||||||
|
|||||||
2
.github/workflows/gki-kernel-local.yml
vendored
2
.github/workflows/gki-kernel-local.yml
vendored
@@ -162,6 +162,8 @@ jobs:
|
|||||||
if: ${{ inputs.build_lkm == true }}
|
if: ${{ inputs.build_lkm == true }}
|
||||||
working-directory: android-kernel
|
working-directory: android-kernel
|
||||||
run: |
|
run: |
|
||||||
|
pip install ast-grep-cli
|
||||||
|
sudo apt-get install llvm-15 -y
|
||||||
ast-grep -U -p '$$$ check_exports($$$) {$$$}' -r '' common/scripts/mod/modpost.c
|
ast-grep -U -p '$$$ check_exports($$$) {$$$}' -r '' common/scripts/mod/modpost.c
|
||||||
ast-grep -U -p 'check_exports($$$);' -r '' common/scripts/mod/modpost.c
|
ast-grep -U -p 'check_exports($$$);' -r '' common/scripts/mod/modpost.c
|
||||||
sed -i '/config KSU/,/help/{s/default y/default m/}' common/drivers/kernelsu/Kconfig
|
sed -i '/config KSU/,/help/{s/default y/default m/}' common/drivers/kernelsu/Kconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user