29
.github/workflows/avd-kernel.yml
vendored
29
.github/workflows/avd-kernel.yml
vendored
@@ -133,32 +133,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: kernel-${{ inputs.arch }}-avd-${{ inputs.version_name }}-${{ env.kernelsu_version }}
|
name: kernel-${{ inputs.arch }}-avd-${{ inputs.version_name }}-${{ env.kernelsu_version }}
|
||||||
path: "${{ env.file_path }}"
|
path: "${{ env.file_path }}"
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.ref_type == 'tag'
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Post to Telegram
|
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.ref_type == 'tag'
|
|
||||||
env:
|
|
||||||
CHAT_ID: ${{ secrets.CHAT_ID }}
|
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
||||||
MESSAGE_THREAD_ID: ${{ secrets.MESSAGE_THREAD_ID }}
|
|
||||||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
|
||||||
COMMIT_URL: ${{ github.event.head_commit.url }}
|
|
||||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
||||||
run: |
|
|
||||||
TITLE=kernel-${{ inputs.arch }}-avd-${{ inputs.version_name }}
|
|
||||||
echo "[+] title: $TITLE"
|
|
||||||
export TITLE
|
|
||||||
export VERSION="${{ env.kernelsu_version }}"
|
|
||||||
echo "[+] Image to upload"
|
|
||||||
ls -l "${{ env.file_path }}"
|
|
||||||
if [ -n "${{ secrets.BOT_TOKEN }}" ]; then
|
|
||||||
pip3 install telethon==1.31.1
|
|
||||||
python3 "$GITHUB_WORKSPACE/KernelSU/scripts/ksubot.py" "${{ env.file_path }}"
|
|
||||||
fi
|
|
||||||
|
|||||||
4
.github/workflows/build-manager.yml
vendored
4
.github/workflows/build-manager.yml
vendored
@@ -2,7 +2,7 @@ name: Build Manager
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "ci" ]
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/build-manager.yml'
|
- '.github/workflows/build-manager.yml'
|
||||||
- 'manager/**'
|
- 'manager/**'
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
echo KEYSTORE_PASSWORD='${{ secrets.KEYSTORE_PASSWORD }}'
|
echo KEYSTORE_PASSWORD='${{ secrets.KEYSTORE_PASSWORD }}'
|
||||||
echo KEY_ALIAS='${{ secrets.KEY_ALIAS }}'
|
echo KEY_ALIAS='${{ secrets.KEY_ALIAS }}'
|
||||||
echo KEY_PASSWORD='${{ secrets.KEY_PASSWORD }}'
|
echo KEY_PASSWORD='${{ secrets.KEY_PASSWORD }}'
|
||||||
echo KEYSTORE_FILE='../key.jks'
|
echo KEYSTORE_FILE='key.jks'
|
||||||
} >> gradle.properties
|
} >> gradle.properties
|
||||||
echo ${{ secrets.KEYSTORE }} | base64 -d > key.jks
|
echo ${{ secrets.KEYSTORE }} | base64 -d > key.jks
|
||||||
fi
|
fi
|
||||||
|
|||||||
5
.github/workflows/ksud.yml
vendored
5
.github/workflows/ksud.yml
vendored
@@ -9,6 +9,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ubuntu-latest
|
default: ubuntu-latest
|
||||||
|
pack_lkm:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
use_cache:
|
use_cache:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -25,6 +29,7 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Prepare LKM fies
|
- name: Prepare LKM fies
|
||||||
|
if: ${{ inputs.pack_lkm }}
|
||||||
run: |
|
run: |
|
||||||
cp android*-lkm/*_kernelsu.ko ./userspace/ksud/bin/aarch64/
|
cp android*-lkm/*_kernelsu.ko ./userspace/ksud/bin/aarch64/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user