Skip to content

Merge branch 'master' into codex/refactor-adaptermyprogress-and-viewh… #13897

Merge branch 'master' into codex/refactor-adaptermyprogress-and-viewh…

Merge branch 'master' into codex/refactor-adaptermyprogress-and-viewh… #13897

Workflow file for this run

name: myPlanet build test
on:
push:
branches:
- '*'
- '!master'
- 'dependabot/**'
- 'codex/**'
- '*-codex/**'
jobs:
build:
name: myPlanet build test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [default, lite]
steps:
- name: checkout repository code
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: check and diff the code to get lite
if: matrix.build == 'lite'
run: |
file="app/src/main/AndroidManifest.xml"
lite="app/src/lite/AndroidManifest.xml"
ls -al "$file" "$lite"
diff <(sed 's/^\s*<!--//; s/-->\s*$//' "$file") <(sed 's/^\s*<!--//; s/-->\s*$//' "$lite")
cp "$lite" "$file"
- name: setup JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
cache: gradle
- name: setup gradle
uses: gradle/actions/setup-gradle@v5
with:
gradle-version: wrapper
cache-disabled: false
cache-read-only: false
cache-write-only: false
- name: build debug as test
run: |
FLAVOR=${{ matrix.build }}
./gradlew assemble${FLAVOR^}Debug --warning-mode all --stacktrace