Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit a003cb2

Browse files
committed
v5.1
Change-Id: I56d31c7ce8049ae70892b07f2cde1f90047d3837 Signed-off-by: yu13140 <whmyc801@gmail.com>
1 parent 59bef56 commit a003cb2

15 files changed

Lines changed: 817 additions & 315 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 🐛 Bug report
2+
description: Report a bug you found in this project
3+
title: "[Bug]"
4+
labels: ["bug"]
5+
assignees:
6+
- yu13140
7+
8+
body:
9+
- type: textarea
10+
attributes:
11+
label: Bug Description
12+
description: A clear and concise description of what the bug is.
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: Reproduction Steps
19+
description: Steps to reproduce the bug.
20+
21+
- type: textarea
22+
attributes:
23+
label: Expected Behavior
24+
description: What did you expect to happen?
25+
26+
- type: textarea
27+
attributes:
28+
label: Actual Behavior
29+
description: What actually happened?
30+
31+
- type: textarea
32+
attributes:
33+
label: Additional Context
34+
description: Add any screenshots, log files, or extra context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: 📱 Device Request
2+
description: Request a kernel port for a specific device and ROM
3+
title: "[DevicePort]"
4+
labels: ["help wanted"]
5+
assignees:
6+
- yu13140
7+
8+
body:
9+
- type: input
10+
attributes:
11+
label: Device Name
12+
placeholder: ex. OnePlus8
13+
validations:
14+
required: true
15+
16+
- type: input
17+
attributes:
18+
label: Device Codename
19+
placeholder: ex. instantnoodle
20+
validations:
21+
required: true
22+
23+
- type: input
24+
attributes:
25+
label: ROM Name
26+
placeholder: ex. OxygenOS
27+
validations:
28+
required: true
29+
30+
- type: input
31+
attributes:
32+
label: ROM Version
33+
placeholder: ex. 13.1
34+
validations:
35+
required: true
36+
37+
- type: input
38+
attributes:
39+
label: Android Version
40+
placeholder: ex. 13
41+
validations:
42+
required: true
43+
44+
- type: input
45+
attributes:
46+
label: Kernel Source Link
47+
placeholder: ex. https://github.com/oppo-source/android_kernel_oppo_sm8250
48+
49+
- type: input
50+
attributes:
51+
label: Kernel Source Branch
52+
placeholder: ex. oppo/sm8250_s_12.1
53+
54+
- type: input
55+
attributes:
56+
label: Kernel Version
57+
placeholder: ex. 4.19.325
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ✨ Feature request
2+
description: Suggest an idea or feature for this project
3+
title: "[Feature]"
4+
labels: ["enhancement"]
5+
assignees:
6+
- yu13140
7+
8+
body:
9+
- type: textarea
10+
attributes:
11+
label: Feature Description
12+
description: Please provide a clear and concise description of the feature you would like to see.
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: Why is this feature needed?
19+
description: Explain the problem this feature would solve. Why is it helpful for the project?
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
attributes:
25+
label: Additional Context
26+
description: Provide any extra context, screenshots, or links that can help us understand your request.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 🙋 Question
2+
description: Ask a general question about the project, such as how to use it or for technical details.
3+
title: "[QA]"
4+
labels: ["question"]
5+
assignees:
6+
- yu13140
7+
8+
body:
9+
- type: textarea
10+
attributes:
11+
label: Your Question
12+
description: Please describe your question clearly here.
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: Additional Information
19+
description: If your question relates to a specific file, line of code, or situation, please provide more information to help us understand.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build and Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
REPO_OWNER: yu13140
8+
REPO_NAME: EHoRY
9+
RELEASE_NAME: "EHoRY"
10+
11+
jobs:
12+
build:
13+
name: "Build EHoRY"
14+
uses: ./.github/workflows/build.yml
15+
16+
release:
17+
name: "Release EHoRY"
18+
runs-on: ubuntu-latest
19+
needs: build
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Download Artifacts
26+
uses: actions/download-artifact@v4
27+
with:
28+
path: ./artifacts
29+
30+
- name: Setup Git
31+
run: |
32+
git config --local user.email "action@github.com"
33+
git config --local user.name "GitHub Action"
34+
35+
- name: Generate New Tag
36+
id: tag_generation
37+
run: |
38+
NEW_TAG="v5.1"
39+
echo "New tag: $NEW_TAG"
40+
echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT
41+
echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
42+
43+
- name: Create Git Tag
44+
run: |
45+
git tag ${{ env.NEW_TAG }}
46+
git push origin ${{ env.NEW_TAG }}
47+
48+
- name: Create GitHub Release
49+
uses: softprops/action-gh-release@v1
50+
with:
51+
tag_name: ${{ env.NEW_TAG }}
52+
name: ${{ env.RELEASE_NAME }} ${{ env.NEW_TAG }}
53+
body: |
54+
Automated release for EHoRY
55+
56+
- Build Date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
57+
- Commit: ${{ github.sha }}
58+
- Built for: aarch64-linux-android
59+
60+
[Update Log](https://github.com/TheGeniusClub/EHoRY/blob/master/update_log.md)
61+
files: |
62+
artifacts/**/*
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
66+
- name: Display Release Info
67+
run: |
68+
echo "🎉 Release ${{ env.NEW_TAG }} created successfully!"
69+
echo "📦 Artifacts uploaded:"
70+
find ./artifacts -type f -exec echo " - {}" \;

.github/workflows/build.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Build EHoRY
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
env:
8+
CARGO_NET_GIT_FETCH_WITH_CLI: true
9+
CARGO_TERM_COLOR: always
10+
UPLOAD_TG: true
11+
12+
jobs:
13+
build-aarch64:
14+
name: Build for AArch64 Linux
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Android SDK
22+
uses: android-actions/setup-android@v2
23+
24+
- name: Setup Android NDK
25+
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;29.0.14206865"
26+
27+
- name: Setup Rust
28+
uses: actions-rust-lang/setup-rust-toolchain@v1
29+
with:
30+
target: aarch64-linux-android
31+
32+
- name: Install cargo-ndk
33+
run: cargo install cargo-ndk
34+
35+
- name: Install cross-compilation tools
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y upx coreutils python3
39+
40+
- name: Build for AArch64
41+
run: |
42+
cd rshy
43+
cargo ndk --target aarch64-linux-android build --release
44+
cargo build --bin encoder
45+
upx --best --lzma /home/runner/work/EHoRY/EHoRY/rshy/target/aarch64-linux-android/release/rshy
46+
/home/runner/work/EHoRY/EHoRY/rshy/target/debug/encoder /home/runner/work/EHoRY/EHoRY/rshy/target/aarch64-linux-android/release/rshy rshy.data
47+
cat ../EHoRY.sh rshy.data > EHoRY.sh
48+
gzexe EHoRY.sh
49+
chmod +x EHoRY.sh
50+
51+
- name: Cache cargo registry and build artifacts
52+
if: always()
53+
uses: actions/cache@v3
54+
with:
55+
path: |
56+
.cargo/registry
57+
.cargo/git
58+
/home/runner/work/EHoRY/EHoRY/rshy/target/aarch64-linux-android
59+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
60+
restore-keys: |
61+
${{ runner.os }}-cargo-
62+
63+
- name: Upload binary artifact
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: EHoRY
67+
path: rshy/EHoRY.sh
68+
retention-days: 7
69+
70+
- name: Bot session cache
71+
if: env.UPLOAD_TG == 'true'
72+
id: bot_session_cache
73+
uses: actions/cache@v4
74+
with:
75+
path: scripts/kernelbot.session
76+
key: ${{ runner.os }}-bot-session
77+
78+
- name: Upload to telegram
79+
if: env.UPLOAD_TG == 'true'
80+
env:
81+
CHAT_ID: ${{ vars.CHAT_ID }}
82+
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
83+
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
84+
COMMIT_URL: ${{ github.event.head_commit.url }}
85+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
86+
REPOSITORY: ${{ github.repository }}
87+
AUTHOR: ${{ github.event.head_commit.author.name }}
88+
MESSAGE_THREAD_ID: 9
89+
shell: bash
90+
run: |
91+
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
92+
pip3 install telethon
93+
export NTIME=$(date '+%Y-%m-%d %H:%M:%S')
94+
python3 $GITHUB_WORKSPACE/scripts/kernelbot.py $GITHUB_WORKSPACE/rshy/EHoRY.sh
95+
fi

0 commit comments

Comments
 (0)