Download .github/workflows/build.yml from Abrarul8541/ModularAI-Terminal: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/Abrarul8541/ModularAI-Terminal/resolve/main/.github/workflows/build.yml
- Command line
-
hf download hf://Abrarul8541/ModularAI-Terminal/.github/workflows/build.yml
-
curl -L -o build.yml https://huggingface.co/Abrarul8541/ModularAI-Terminal/resolve/main/.github/workflows/build.yml
758 Bytes
| name: build | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| apk: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: { distribution: temurin, java-version: 17 } | |
| - uses: android-actions/setup-android@v3 | |
| - uses: gradle/actions/setup-gradle@v4 | |
| with: { gradle-version: "8.9" } | |
| - run: gradle :app:assembleDebug :app:testDebugUnitTest | |
| - name: Size gate (15 MB) | |
| run: | | |
| f=$(ls app/build/outputs/apk/debug/*.apk | head -1) | |
| s=$(stat -c%s "$f"); echo "APK size: $s" | |
| [ "$s" -lt 15728640 ] || { echo "APK exceeds 15 MB"; exit 1; } | |
| - uses: actions/upload-artifact@v4 | |
| with: { name: apk, path: app/build/outputs/apk/debug/*.apk } | |