Merge pull request #1153 from tunjid/tj/mac-video-size #2174
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
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - releases | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| check-style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| - uses: gradle/actions/setup-gradle@v4 | |
| - run: ./gradlew spotlessCheck | |
| data-tests: | |
| runs-on: macos-14 | |
| steps: | |
| - name: Skip on PRs | |
| if: github.ref != 'refs/heads/main' | |
| run: echo "Skipping multiplatform tests on PRs to reduce CI time" | |
| - name: Checkout repo | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/checkout@v5 | |
| - name: Validate Gradle Wrapper | |
| if: github.ref == 'refs/heads/main' | |
| uses: gradle/wrapper-validation-action@v3 | |
| - name: Setup cache | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.konan | |
| key: ${{ runner.os }}-${{ hashFiles('**/.lock') }} | |
| - name: Set up java | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| - name: Setup Gradle | |
| if: github.ref == 'refs/heads/main' | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Run tests | |
| if: github.ref == 'refs/heads/main' | |
| run: ./gradlew testDataLayer | |
| build-android-app: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| - name: Setup java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Create Google services file | |
| shell: bash | |
| env: | |
| GOOGLE_SERVICES_ENCODED: ${{ secrets.GOOGLE_SERVICES_BASE_64 }} | |
| run: | | |
| # Create the directory structure | |
| mkdir -p "composeApp/src/release/" | |
| # Decode the env variable into the file | |
| echo "$GOOGLE_SERVICES_ENCODED" | openssl base64 -d -A \ | |
| -out "composeApp/src/release/google-services.json" | |
| - name: Build App | |
| run: ./gradlew assembleRelease |