platformcapability changed to bool #113
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
name: Build launcher | |
on: | |
workflow_dispatch: | |
push: | |
branches: '*' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
config: | |
- name: Release | |
lower: release | |
- name: Debug | |
lower: debug | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
cache: gradle | |
- name: Generate keystore file | |
run: echo ${{secrets.KEYSTORE_FILE}} | base64 -d > ~/release.keystore | |
- name: Fix gradle permissions | |
run: chmod +x ./gradlew | |
- name: Build project | |
run: | | |
./gradlew app:assemble${{ matrix.config.name }} \ | |
-Pandroid.injected.signing.store.file="$HOME/release.keystore" \ | |
-Pandroid.injected.signing.store.password="${{secrets.KEYSTORE_PASSWORD}}" \ | |
-Pandroid.injected.signing.key.alias="${{secrets.KEY_ALIAS}}" \ | |
-Pandroid.injected.signing.key.password="${{secrets.KEY_PASSWORD}}" | |
- name: Rename universal apk | |
id: rename_apk_universal | |
run: | | |
SHORT_SHA=${GITHUB_SHA::7} | |
APK_PATH=${{github.workspace}}/app/build/outputs/apk/${{ matrix.config.lower }}/app-universal-${{ matrix.config.lower }}.apk | |
OUT_PATH=${{github.workspace}}/geode-launcher-${{ matrix.config.lower }}-$SHORT_SHA.apk | |
mv $APK_PATH $OUT_PATH | |
echo "path=$OUT_PATH" >> $GITHUB_OUTPUT | |
- name: Rename apk | |
id: rename_apk | |
run: | | |
SHORT_SHA=${GITHUB_SHA::7} | |
APK_PATH=${{github.workspace}}/app/build/outputs/apk/${{ matrix.config.lower }}/app-armeabi-v7a-${{ matrix.config.lower }}.apk | |
OUT_PATH=${{github.workspace}}/geode-launcher-${{ matrix.config.lower }}-android32-$SHORT_SHA.apk | |
mv $APK_PATH $OUT_PATH | |
echo "path=$OUT_PATH" >> $GITHUB_OUTPUT | |
- name: Upload development build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: geode-launcher-${{ matrix.config.lower }} | |
path: | | |
${{ steps.rename_apk_universal.outputs.path }} | |
${{ steps.rename_apk.outputs.path }} |