Compare commits
62 commits
Author | SHA1 | Date | |
---|---|---|---|
b7826e016e | |||
7449e1eb74 | |||
03708116ff | |||
41f6097374 | |||
56b27d20eb | |||
ec65a3317f | |||
d9e55be893 | |||
b20a69b504 | |||
ae190cc371 | |||
ecfe891379 | |||
b29c4f9550 | |||
3c9526fb74 | |||
8c958b5d8f | |||
d0d8660b8b | |||
b172b25bb1 | |||
6b5807be97 | |||
0c6d703c39 | |||
92b54c9a55 | |||
3676197ea6 | |||
0d5077630d | |||
69dfe2b499 | |||
3b7284cbe5 | |||
ce3522ff69 | |||
0295eaef40 | |||
c96032233f | |||
a2f7b2a077 | |||
584c2e6b53 | |||
a10e63df38 | |||
09533654d5 | |||
ec77adae21 | |||
5167cba9bf | |||
31d422a8ca | |||
2d87503f99 | |||
8ef18b236a | |||
89c957d1ec | |||
a873046b39 | |||
015eb36372 | |||
3ffb365748 | |||
67672ea590 | |||
afccef1e7d | |||
4158a18ba6 | |||
3db3d04443 | |||
8738e281d8 | |||
808ad21843 | |||
7d7aca37d8 | |||
0c2df7e6af | |||
1cfee212d7 | |||
78b864fc50 | |||
8223b8d3fa | |||
2904ce54e9 | |||
d1a72a27c6 | |||
724c661a25 | |||
0c844c9649 | |||
1b9fabf062 | |||
0fc8a33f3e | |||
627c34f404 | |||
1de715339a | |||
f789a38449 | |||
4782731860 | |||
ed7858a223 | |||
51b027fd78 | |||
ea5dd44967 |
17 changed files with 21198 additions and 17 deletions
4
.github/workflows/build_pull_request.yml
vendored
4
.github/workflows/build_pull_request.yml
vendored
|
@ -18,7 +18,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: Prepare job
|
name: Prepare job
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -49,7 +49,7 @@ jobs:
|
||||||
build_individual:
|
build_individual:
|
||||||
name: Build individual modules
|
name: Build individual modules
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
||||||
steps:
|
steps:
|
||||||
|
|
37
.github/workflows/build_push.yml
vendored
37
.github/workflows/build_push.yml
vendored
|
@ -21,8 +21,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: Prepare job
|
name: Prepare job
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
container: ubuntu-latest
|
|
||||||
outputs:
|
outputs:
|
||||||
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -36,7 +35,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
projects=(src/*/*)
|
projects=(src/*/*)
|
||||||
|
export CI_CHUNK_NUM=${#projects[@]}
|
||||||
echo "NUM_INDIVIDUAL_MODULES=${#projects[@]}" >> $GITHUB_ENV
|
echo "NUM_INDIVIDUAL_MODULES=${#projects[@]}" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Temporary pause because of leak of tj-actions/changed-files
|
# Temporary pause because of leak of tj-actions/changed-files
|
||||||
|
@ -81,7 +80,7 @@ jobs:
|
||||||
build_individual:
|
build_individual:
|
||||||
name: Build individual modules
|
name: Build individual modules
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -95,6 +94,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
|
|
||||||
|
- name: Set up Android SDK
|
||||||
|
uses: https://github.com/android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # v3
|
||||||
|
with:
|
||||||
|
packages: ""
|
||||||
|
|
||||||
- name: Prepare signing key
|
- name: Prepare signing key
|
||||||
run: |
|
run: |
|
||||||
|
@ -112,8 +116,8 @@ jobs:
|
||||||
run: chmod +x ./gradlew && ./gradlew -p src assembleRelease
|
run: chmod +x ./gradlew && ./gradlew -p src assembleRelease
|
||||||
|
|
||||||
- name: Upload APKs (chunk ${{ matrix.chunk }})
|
- name: Upload APKs (chunk ${{ matrix.chunk }})
|
||||||
uses: https://github.com/actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
|
uses: https://code.forgejo.org/forgejo/upload-artifact@16871d9e8cfcf27ff31822cac382bbb5450f1e1e # v4-patch
|
||||||
if: "github.repository == 'Kohi-den/extensions-source'"
|
if: "github.repository == 'AlmightyHak/extensions-source'"
|
||||||
with:
|
with:
|
||||||
name: "individual-apks-${{ matrix.chunk }}"
|
name: "individual-apks-${{ matrix.chunk }}"
|
||||||
path: "**/*.apk"
|
path: "**/*.apk"
|
||||||
|
@ -127,25 +131,34 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- build_individual
|
- build_individual
|
||||||
if: "github.repository == 'AlmightyHak/extensions-source'"
|
if: "github.repository == 'AlmightyHak/extensions-source'"
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup rsync
|
||||||
|
run: |
|
||||||
|
sudo apt-get update && sudo apt install rsync -y
|
||||||
|
|
||||||
- name: Download APK artifacts
|
- name: Download APK artifacts
|
||||||
uses: https://github.com/actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4
|
uses: https://code.forgejo.org/forgejo/download-artifact@d8d0a99033603453ad2255e58720b460a0555e1e # v4-patch
|
||||||
with:
|
with:
|
||||||
path: ~/apk-artifacts
|
path: ~/apk-artifacts
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: https://github.com/actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
|
uses: https://github.com/actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
|
|
||||||
|
- name: Set up Android SDK
|
||||||
|
uses: https://github.com/android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # v3
|
||||||
|
with:
|
||||||
|
packages: "build-tools;34.0.0"
|
||||||
|
|
||||||
- name: Checkout main branch
|
- name: Checkout main branch
|
||||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
path: main
|
path: main
|
||||||
|
|
||||||
- name: Create repo artifacts
|
- name: Create repo artifacts
|
||||||
run: |
|
run: |
|
||||||
cd main
|
cd main
|
||||||
|
@ -153,7 +166,7 @@ jobs:
|
||||||
INSPECTOR_LINK="$(curl -s "https://api.github.com/repos/aniyomiorg/aniyomi-extensions-inspector/releases/latest" | jq -r '.assets[0].browser_download_url')"
|
INSPECTOR_LINK="$(curl -s "https://api.github.com/repos/aniyomiorg/aniyomi-extensions-inspector/releases/latest" | jq -r '.assets[0].browser_download_url')"
|
||||||
curl -L "$INSPECTOR_LINK" -o ./Inspector.jar
|
curl -L "$INSPECTOR_LINK" -o ./Inspector.jar
|
||||||
java -jar ./Inspector.jar "repo/apk" "output.json" "tmp"
|
java -jar ./Inspector.jar "repo/apk" "output.json" "tmp"
|
||||||
python ./.github/scripts/create-repo.py
|
python ./.github/scripts/create-repo.py
|
||||||
|
|
||||||
- name: Checkout repo branch
|
- name: Checkout repo branch
|
||||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
|
|
21111
SDK/NOTICE.txt
Normal file
21111
SDK/NOTICE.txt
Normal file
File diff suppressed because it is too large
Load diff
BIN
SDK/adb
Normal file
BIN
SDK/adb
Normal file
Binary file not shown.
BIN
SDK/etc1tool
Normal file
BIN
SDK/etc1tool
Normal file
Binary file not shown.
BIN
SDK/fastboot
Normal file
BIN
SDK/fastboot
Normal file
Binary file not shown.
BIN
SDK/hprof-conv
Normal file
BIN
SDK/hprof-conv
Normal file
Binary file not shown.
BIN
SDK/lib64/libc++.so
Normal file
BIN
SDK/lib64/libc++.so
Normal file
Binary file not shown.
2
SDK/licenses/android-sdk-license
Normal file
2
SDK/licenses/android-sdk-license
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
24333f8a63b6825ea9c5514f83c2829b004d1fee
|
BIN
SDK/make_f2fs
Normal file
BIN
SDK/make_f2fs
Normal file
Binary file not shown.
BIN
SDK/make_f2fs_casefold
Normal file
BIN
SDK/make_f2fs_casefold
Normal file
Binary file not shown.
BIN
SDK/mke2fs
Normal file
BIN
SDK/mke2fs
Normal file
Binary file not shown.
53
SDK/mke2fs.conf
Normal file
53
SDK/mke2fs.conf
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
[defaults]
|
||||||
|
base_features = sparse_super,large_file,filetype,dir_index,ext_attr
|
||||||
|
default_mntopts = acl,user_xattr
|
||||||
|
enable_periodic_fsck = 0
|
||||||
|
blocksize = 4096
|
||||||
|
inode_size = 256
|
||||||
|
inode_ratio = 16384
|
||||||
|
reserved_ratio = 1.0
|
||||||
|
|
||||||
|
[fs_types]
|
||||||
|
ext3 = {
|
||||||
|
features = has_journal
|
||||||
|
}
|
||||||
|
ext4 = {
|
||||||
|
features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg
|
||||||
|
inode_size = 256
|
||||||
|
}
|
||||||
|
ext4dev = {
|
||||||
|
features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize
|
||||||
|
inode_size = 256
|
||||||
|
options = test_fs=1
|
||||||
|
}
|
||||||
|
small = {
|
||||||
|
blocksize = 1024
|
||||||
|
inode_size = 128
|
||||||
|
inode_ratio = 4096
|
||||||
|
}
|
||||||
|
floppy = {
|
||||||
|
blocksize = 1024
|
||||||
|
inode_size = 128
|
||||||
|
inode_ratio = 8192
|
||||||
|
}
|
||||||
|
big = {
|
||||||
|
inode_ratio = 32768
|
||||||
|
}
|
||||||
|
huge = {
|
||||||
|
inode_ratio = 65536
|
||||||
|
}
|
||||||
|
news = {
|
||||||
|
inode_ratio = 4096
|
||||||
|
}
|
||||||
|
largefile = {
|
||||||
|
inode_ratio = 1048576
|
||||||
|
blocksize = -1
|
||||||
|
}
|
||||||
|
largefile4 = {
|
||||||
|
inode_ratio = 4194304
|
||||||
|
blocksize = -1
|
||||||
|
}
|
||||||
|
hurd = {
|
||||||
|
blocksize = 4096
|
||||||
|
inode_size = 128
|
||||||
|
}
|
2
SDK/source.properties
Normal file
2
SDK/source.properties
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Pkg.UserSrc=false
|
||||||
|
Pkg.Revision=36.0.0
|
BIN
SDK/sqlite3
Normal file
BIN
SDK/sqlite3
Normal file
Binary file not shown.
|
@ -18,4 +18,4 @@ allprojects {
|
||||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,8 +19,8 @@ if (System.getenv("CI") != "true") {
|
||||||
} else {
|
} else {
|
||||||
// Running in CI (GitHub Actions)
|
// Running in CI (GitHub Actions)
|
||||||
|
|
||||||
val chunkSize = System.getenv("CI_CHUNK_SIZE").toInt()
|
val chunkSize = System.getenv("CI_CHUNK_SIZE")?.toIntOrNull() ?: Int.MAX_VALUE
|
||||||
val chunk = System.getenv("CI_CHUNK_NUM").toInt()
|
val chunk = System.getenv("CI_CHUNK_NUM")?.toIntOrNull() ?: 0
|
||||||
|
|
||||||
// Loads individual extensions
|
// Loads individual extensions
|
||||||
File(rootDir, "src").getChunk(chunk, chunkSize)?.forEach {
|
File(rootDir, "src").getChunk(chunk, chunkSize)?.forEach {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue