Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
likeadragonmaid committed Sep 18, 2022
0 parents commit 29149ac
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
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}

15 changes: 15 additions & 0 deletions README.md
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`

0 comments on commit 29149ac

Please sign in to comment.