Update Shrine README #13
Workflow file for this run
This file contains hidden or 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
| # Workflow name | |
| name: Build Shrine Sample | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set Up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Install Android SDK Platform VanillaIceCream | |
| run: | | |
| echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null | |
| echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "platforms;android-35" | |
| # The sample includes a keystore.properties.template. | |
| # For a CI build, we might need to provide a dummy or generated keystore. | |
| # For now, let's assume the build works without a specific signing config for debug. | |
| # If it requires specific signing for debug, this might fail or need adjustment. | |
| - name: Create dummy keystore.properties if not exists | |
| run: | | |
| if [ ! -f Shrine/keystore.properties ]; then | |
| echo "Creating dummy keystore.properties for CI build" | |
| echo "storeFile=debug.keystore" > Shrine/keystore.properties | |
| echo "storePassword=android" >> Shrine/keystore.properties | |
| echo "keyAlias=androiddebugkey" >> Shrine/keystore.properties | |
| echo "keyPassword=android" >> Shrine/keystore.properties | |
| fi | |
| # Ensure a debug.keystore exists if not provided by checkout | |
| if [ ! -f Shrine/debug.keystore ]; then | |
| echo "Generating dummy debug.keystore for CI build" | |
| keytool -genkey -v -keystore Shrine/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US" | |
| fi | |
| working-directory: . # Run from checkout root so Shrine/ path is correct | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| working-directory: ./Shrine | |
| - name: Build Shrine app | |
| working-directory: ./Shrine | |
| run: ./gradlew app:assembleDebug |