backup repo
Android CI / build (push) Has been cancelled

This commit is contained in:
Zhaohui Huang committed 2026-07-06 19:09:41 -11:00
commit d5d3e61e30
147 files changed
+25311

No files matched your search

+101
View File
@@ -0,0 +1,101 @@
name: 反馈 Bug
description: 反馈遇到的问题
labels: [bug]
title: "[Bug] "
body:
- type: markdown
attributes:
value: |
为了使我们更好地帮助你,请提供以下信息。
- type: textarea
id: desc
attributes:
label: 问题描述
description: 发生了什么情况?有什么现状?
validations:
required: true
- type: textarea
id: steps
attributes:
label: 复现步骤
description: 如何复现
placeholder: |
1. 打开...
2. 点击...
3. 出现...状况
validations:
required: true
- type: textarea
id: expected
attributes:
label: 预期行为
description: 正常情况下应该发生什么
validations:
required: true
- type: textarea
id: actual
attributes:
label: 实际行为
description: 实际上发生了什么
validations:
required: true
- type: textarea
id: media
attributes:
label: 截图或录屏
description: 问题复现时候的截图或录屏
placeholder: 点击文本框下面小长条可以上传文件
- type: input
id: android-ver
attributes:
label: 安卓版本
placeholder: "12"
validations:
required: true
- type: input
id: romaing-ver
attributes:
label: 哔哩漫游版本
placeholder: 1.6.2
validations:
required: true
- type: dropdown
id: client
attributes:
label: 哔哩哔哩版本
options:
- 粉版(普通版)
- 概念版
- HD 版
- play 版
description: 目前仅支持粉版、概念版、HD 版和 play 版
validations:
required: true
- type: input
id: client-ver
attributes:
label: 哔哩哔哩版本号
description: 非最新版本可能不受理
placeholder: 6.74.0
validations:
required: true
- type: input
id: framework
attributes:
label: 使用的框架和版本
placeholder: LSPosed 1.8.2
validations:
required: true
- type: textarea
id: misc
attributes:
label: 其他
description: 如哪部番、Magisk 版本等
- type: textarea
id: logs
attributes:
label: 日志
description: 请使用漫游自带的导出日志功能或者使用 `adb logcat`。无日志提交会被关闭。
placeholder: 点击文本框下面小长条可以上传文件
validations:
required: true
+8
View File
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Telegram 频道
url: https://t.me/biliroaming
about: 可以订阅更新、讨论交流
- name: QQ 频道
url: https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=NVoD5&from=246610&biz=ka
about: 可以订阅更新、讨论交流
@@ -0,0 +1,31 @@
name: 功能请求
description: 想要请求添加某个功能
labels: [enhancement]
title: "[Feature] "
body:
- type: textarea
id: reason
attributes:
label: 原因
description: 为什么想要这个功能
validations:
required: true
- type: textarea
id: desc
attributes:
label: 功能简述
description: 想要个怎样的功能
validations:
required: true
- type: textarea
id: logic
attributes:
label: 功能逻辑
description: 如何互交、如何使用等
validations:
required: true
- type: textarea
id: ref
attributes:
label: 实现参考
description: 该功能可能的实现方式,或者其他已经实现该功能的应用等
+40
View File
@@ -0,0 +1,40 @@
name: 添加公共服务器
description: 把自己的服务器添加到公共服务器列表
labels: [server]
title: "[Server] "
body:
- type: input
id: contact
attributes:
label: 联系方式
description: Telegram、Github 账号等联系方式
validations:
required: true
- type: input
id: domain
attributes:
label: 域名
description: 服务器域名
validations:
required: true
- type: checkboxes
id: areas
attributes:
label: 支持地区
description: 服务器支持解析的地区
options:
- label: 中国大陆
- label: 港澳
- label: 台湾
- label: 东南亚
- type: checkboxes
id: premium
attributes:
label: 带会员专享
options:
- label: 服务器只有带会员用户能解析
- type: input
id: sponsor
attributes:
label: 赞助地址
description: 爱发电等
+23
View File
@@ -0,0 +1,23 @@
version: 2
updates:
- package-ecosystem: gradle
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
target-branch: master
registries:
- maven-google
- gralde-plugin
groups:
maven-dependencies:
patterns:
- "*"
registries:
maven-google:
type: maven-repository
url: "https://dl.google.com/dl/android/maven2/"
gralde-plugin:
type: maven-repository
url: "https://plugins.gradle.org/m2/"
+52
View File
@@ -0,0 +1,52 @@
name: PR Build
on: [pull_request]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion"
CCACHE_NOHASHDIR: true
CCACHE_MAXSIZE: 1G
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Set up ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ github.sha }}
restore-keys: ${{ runner.os }}
- name: Build with Gradle
run: |
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
echo 'org.gradle.vfs.watch=true' >> gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
echo 'android.native.buildOutput=verbose' >> gradle.properties
./gradlew assemble
- name: Stop gradle daemon
run: ./gradlew --stop
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-artifact
path: |
app/build/outputs
app/release
+77
View File
@@ -0,0 +1,77 @@
name: Android CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion"
CCACHE_NOHASHDIR: true
CCACHE_MAXSIZE: 1G
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Retrieve version
run: |
echo VERSION=$(echo ${{ github.event.head_commit.id }} | head -c 10) >> $GITHUB_ENV
- name: Set up ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ github.sha }}
restore-keys: ${{ runner.os }}
- name: Write key
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/master' ) || github.ref_type == 'tag' }}
run: |
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then
echo 'Writing sign key'
echo releaseStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> gradle.properties
echo releaseKeyAlias='${{ secrets.ALIAS }}' >> gradle.properties
echo releaseKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
echo releaseStoreFile='key.jks' >> gradle.properties
echo '${{ secrets.SIGNING_KEY }}' | base64 --decode > key.jks
fi
- name: Build with Gradle
run: |
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
echo 'org.gradle.vfs.watch=true' >> gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
echo 'android.native.buildOutput=verbose' >> gradle.properties
./gradlew -PappVerName=${{ env.VERSION }} assembleRelease assembleDebug
- name: Upload built apk
if: success()
uses: actions/upload-artifact@v4
with:
name: snapshot
path: |
app/build/outputs/apk
app/build/outputs/mapping
app/release
- name: Post to channel
if: github.ref == 'refs/heads/master'
env:
CHANNEL_ID: ${{ secrets.TELEGRAM_TO }}
BOT_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
FILE: app/release/BiliRoaming_${{ env.VERSION }}.apk
COMMIT_MESSAGE: |+
New push to github\!
```
${{ github.event.head_commit.message }}
```by `${{ github.event.head_commit.author.name }}`
See commit detail [here](${{ github.event.head_commit.url }})
Snapshot apk is attached \(unsupported by TAICHI\)
run: |
ESCAPED=`python3 -c 'import json,os,urllib.parse; print(urllib.parse.quote(json.dumps(os.environ["COMMIT_MESSAGE"])))'`
curl -v "https://api.telegram.org/bot${BOT_TOKEN}/sendMediaGroup?chat_id=${CHANNEL_ID}&media=%5B%7B%22type%22:%22document%22,%20%22media%22:%22attach://release%22,%22parse_mode%22:%22MarkdownV2%22,%22caption%22:${ESCAPED}%7D%5D" -F release="@$FILE"