kernel: dynamic get_cred_rcu patch for appropriate atomic function an… #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Manager | |
on: | |
push: | |
branches: [ "next" ] | |
paths: | |
- '.github/workflows/build-manager.yml' | |
- 'manager/**' | |
- 'kernel/**' | |
- 'userspace/ksud_overlayfs**' | |
- 'userspace/ksud_magic/**' | |
- 'userspace/susfsd/**' | |
pull_request: | |
branches: [ "next" ] | |
paths: | |
- 'manager/**' | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
build-lkm: | |
uses: ./.github/workflows/build-lkm.yml | |
secrets: inherit | |
build-susfsd: | |
needs: build-lkm | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-linux-android | |
os: ubuntu-latest | |
uses: ./.github/workflows/susfsd.yml | |
with: | |
target: ${{ matrix.target }} | |
os: ${{ matrix.os }} | |
build-ksud_overlayfs: | |
needs: build-susfsd | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-linux-android | |
os: ubuntu-latest | |
uses: ./.github/workflows/ksud_overlayfs.yml | |
with: | |
target: ${{ matrix.target }} | |
os: ${{ matrix.os }} | |
build-ksud_magic: | |
needs: build-ksud_overlayfs | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-linux-android | |
os: ubuntu-latest | |
uses: ./.github/workflows/ksud_magic.yml | |
with: | |
target: ${{ matrix.target }} | |
os: ${{ matrix.os }} | |
build-manager: | |
needs: build-ksud_magic | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./manager | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Write key | |
run: | | |
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then | |
{ | |
echo KEYSTORE_PASSWORD='${{ secrets.KEYSTORE_PASSWORD }}' | |
echo KEY_ALIAS='${{ secrets.KEY_ALIAS }}' | |
echo KEY_PASSWORD='${{ secrets.KEY_PASSWORD }}' | |
echo KEYSTORE_FILE='key.jks' | |
} >> gradle.properties | |
echo ${{ secrets.KEYSTORE }} | base64 -d > key.jks | |
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 susfsd | |
uses: actions/download-artifact@v4 | |
with: | |
name: susfsd-aarch64-linux-android | |
path: . | |
- name: Copy susfsd to app jniLibs | |
run: | | |
mkdir -p app/src/main/jniLibs/arm64-v8a | |
cp -f ../arm64-v8a/susfsd ../manager/app/src/main/jniLibs/arm64-v8a/libsusfsd.so | |
- name: Download arm64 ksud_overlayfs | |
uses: actions/download-artifact@v4 | |
with: | |
name: ksud_overlayfs-aarch64-linux-android | |
path: ksud_overlayfs | |
- name: Copy ksud_overlayfs to app jniLibs | |
run: | | |
cp -f ../ksud_overlayfs/aarch64-linux-android/release/ksud ../manager/app/src/main/jniLibs/arm64-v8a/libksud_overlayfs.so | |
- name: Download arm64 ksud_magic | |
uses: actions/download-artifact@v4 | |
with: | |
name: ksud_magic-aarch64-linux-android | |
path: ksud_magic | |
- name: Copy ksud_magic to app jniLibs | |
run: | | |
cp -f ../ksud_magic/aarch64-linux-android/release/ksud ../manager/app/src/main/jniLibs/arm64-v8a/libksud_magic.so | |
- name: Build with Gradle | |
run: | | |
{ | |
echo 'org.gradle.parallel=true' | |
echo 'org.gradle.vfs.watch=true' | |
echo 'org.gradle.jvmargs=-Xmx2048m' | |
echo 'android.native.buildOutput=verbose' | |
} >> gradle.properties | |
sed -i 's/org.gradle.configuration-cache=true//g' gradle.properties | |
chmod +x gradlew | |
./gradlew clean assembleRelease | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: manager | |
path: manager/app/build/outputs/apk/release/*.apk | |
- name: Upload mappings | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "mappings" | |
path: "manager/app/build/outputs/mapping/release/" |