This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 29149ac
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: BUILD CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
VENDOR : xiaomi | ||
MODEL : jasmine | ||
KERNEL_REPO_BRANCH : bullseye-9 | ||
RENAMED_REPO_BRANCH : bookworm | ||
PACKAGING_REPO_BRANCH : bookworm | ||
PACKAGES_DIR : ${{ github.workspace }}/packages | ||
PACKAGING_DIR : ${{ github.workspace }}/linux-android-xiaomi-jasmine-sprout-packaging | ||
KERNEL_REPO_URL : https://github.com/Droidian-Mi-A2-6X/linux-android-xiaomi-wayne-jasmine | ||
PACKAGING_REPO_URL : https://github.com/Droidian-Mi-A2-6X/linux-android-xiaomi-jasmine-sprout-packaging | ||
KERNEL_DIR : ${{ github.workspace }}/kernel/$VENDOR/$MODEL | ||
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
mkdir -p ${{ env.PACKAGES_DIR }} | ||
git clone ${{env.KERNEL_REPO_URL}} -b ${{env.KERNEL_REPO_BRANCH}} ${{env.KERNEL_DIR}} --depth=1 && git -C ${{env.KERNEL_DIR}} checkout -b ${{env.RENAMED_REPO_BRANCH}} && git clone ${{env.PACKAGING_REPO_URL}} -b ${{env.PACKAGING_REPO_BRANCH}} | ||
docker run --rm -v $PACKAGES_DIR:/buildd -v ${{env.KERNEL_DIR}}:/buildd/sources -v ${{env.PACKAGING_DIR}}:/buildd/sources/debian quay.io/droidian/build-essential:bookworm-amd64 bash -c "cd /buildd/sources && RELENG_HOST_ARCH="arm64" releng-build-package" | ||
zip -r packages.zip $PACKAGES_DIR | ||
- name: Release | ||
run: gh release create $((echo $[ $RANDOM % 99 + 10 ] ; date -u +%D ; ) | tr -d '\n,/') packages.zip ${{env.KERNEL_DIR}}/out/KERNEL_OBJ/boot.img --notes "$(date)" --repo https://github.com/${GITHUB_REPOSITORY} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Build Droidian | ||
Build Droidian boot.img and packages from kernel repo. | ||
|
||
### Xiaomi Mi A2 | ||
Upon black screen on boot, you should `SSH` into the device by using the following command while the device is connected to PC using USB. The password is `1234` | ||
|
||
`ssh [email protected]` | ||
|
||
After that you should run | ||
|
||
`sudo -i` | ||
|
||
`echo 100 > /sys/class/leds/lcd-backlight/brightness && exit` | ||
|
||
`wget https://github.com/Droidian-Mi-A2-6X/droidian-tweaks/raw/master/setup.sh && chmod +x setup.sh && ./setup.sh` |