Skip to content

Commit

Permalink
run nativeful and nativeless builds
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Jun 28, 2024
1 parent 591e310 commit 7af9bfc
Showing 1 changed file with 40 additions and 4 deletions.
44 changes: 40 additions & 4 deletions .github/workflows/android-app-reproducible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:
outputs:
container_image: ${{ env.inner_container_image }}

build-app:
name: Build reproducible app
build-nativeful:
name: Reproducible nativeful build
needs: [prepare]
runs-on: ubuntu-latest
timeout-minutes: 60
container:
image: ${{ needs.prepare.outputs.container_image }}
strategy:
Expand All @@ -48,13 +49,48 @@ jobs:
with:
submodules: true

- name: Build nativeful app (${{ matrix.build-id }})
run: |
git config --global --add safe.directory $(pwd)
./build-apk.sh --fdroid
- name: Upload apks (${{ matrix.build-id }})
uses: actions/upload-artifact@v3
with:
name: apk-nativeful-${{ matrix.build-id }}
path: dist
if-no-files-found: error
retention-days: 7

build-nativeless:
name: Reproducible nativeless build
needs: [prepare]
runs-on: ubuntu-latest
timeout-minutes: 60
container:
image: ${{ needs.prepare.outputs.container_image }}
strategy:
fail-fast: false
matrix:
build-id: [a, b]
steps:
- name: Fix HOME path
run: echo "HOME=/root" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Build app (${{ matrix.build-id }})
run: ./build-apk.sh --fdroid
run: |
git config --global --add safe.directory $(pwd)
./android/gradlew -p android clean assembleOssProdFdroid
- name: Upload apks (${{ matrix.build-id }})
uses: actions/upload-artifact@v3
with:
name: apks-${{ matrix.build-id }}
name: apk-nativeless-${{ matrix.build-id }}
path: android/app/build/outputs/apk
if-no-files-found: error
retention-days: 7

0 comments on commit 7af9bfc

Please sign in to comment.