Files
lawnchair/.github/workflows/build_debug_apk.yml
Goooler 08031573ff Cleanup build scripts (#2903)
* No need to apply kotlin in hidden-api

* Remove rxjava2

* Add replaceFrameworkJar back

* Remove unused minify configs

* kotlinx-serialization-json 1.4.0

* material3 1.0.0-beta01

* Coil 2.2.0

* Cleanup CC

* Revert "material3 1.0.0-beta01"

This reverts commit 67f51ffe00.

* Revert "Add replaceFrameworkJar back"

This reverts commit c9edc3b65f.

* Limit CI running on dev branches & PRs

* Cleanup kotlin plugins

* Configure android extensions ini allprojects

* Cleanup

* Configure projects repos in dependencyResolutionManagement

* Remove root namespace

* Bump AGP to 7.3.0-rc01

* Remove empty manifest files

* Apply plugins in plugins block

* Remove buildscript

* Enable typesafe project accessors

* Update submodule

* Merge https://github.com/LawnchairLauncher/platform_frameworks_libs_systemui/pull/5

* Bump Gradle Enterprise plugin to 3.11.1

* Add CI ignore rules

* Add renovate.json

* Correct ignore rules for CI

* Enable abortOnError

* Simplify FRAMEWORK_PREBUILTS_DIR

* Remove sdk versions
2022-09-05 09:23:10 +08:00

93 lines
2.8 KiB
YAML

name: Build debug APK
on:
workflow_dispatch:
push:
branches:
- '*-dev'
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
pull_request:
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
jobs:
build-debug-apk:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Write sign info
if: github.repository == 'LawnchairLauncher/lawnchair'
run: |
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> keystore.properties
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> keystore.properties
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> keystore.properties
echo storeFile='${{ github.workspace }}/key.jks' >> keystore.properties
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ github.workspace }}/key.jks
fi
- name: Build debug APK
run: ./gradlew assembleLawnWithQuickstepDebug
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Debug APK
path: build/outputs/apk/lawnWithQuickstep/debug/*.apk
send-notifications:
runs-on: ubuntu-latest
if: github.repository == 'LawnchairLauncher/lawnchair'
needs: build-debug-apk
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install gitpython requests
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: Debug APK
path: artifacts/debug-apk
- name: Send notifications
run: python ci.py
env:
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }}
TELEGRAM_CI_CHANNEL_ID: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }}
TELEGRAM_TEAM_GROUP_ID: ${{ secrets.NOTIFY_CHANNEL_ID }}
ARTIFACT_DIRECTORY: artifacts/debug-apk
GITHUB_REF: ${{ github.ref }}
ACTION: internal_notifications