Capture raw apksigner output cross-platform #27
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
| name: Continuous integration | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, agent/minimum-foundation] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| android: | |
| name: Android tests, debug APK and release lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout with Humla | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| cache: gradle | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install pinned NDK | |
| run: sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;25.1.8937393" | |
| - name: Build patched Spongy Castle jars | |
| working-directory: libraries/humla/libs/humla-spongycastle | |
| run: | | |
| chmod +x ../../gradlew | |
| ../../gradlew jar --no-daemon | |
| - name: Test and assemble FOSS debug and unsigned release | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew :app:testFossDebugUnitTest :app:assembleFossDebug :app:assembleFossRelease --no-daemon --stacktrace | |
| - name: Upload debug APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: minimum-foss-debug-${{ github.sha }} | |
| path: app/build/outputs/apk/foss/debug/mumla-foss-debug.apk | |
| if-no-files-found: error | |
| retention-days: 14 | |
| web: | |
| name: Portal tests and production build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.16.0 | |
| run_install: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: pnpm | |
| cache-dependency-path: web/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Test | |
| run: pnpm test | |
| - name: Type-check | |
| run: pnpm exec tsc --noEmit | |
| - name: Build | |
| run: pnpm build |