Skip to content

ci: Pin fdroidserver to last known good version #1132

ci: Pin fdroidserver to last known good version

ci: Pin fdroidserver to last known good version #1132

Workflow file for this run

name: Publish
on:
pull_request:
schedule:
- cron: '0 5 * * *'
concurrency:
group: publish
cancel-in-progress: true
jobs:
android:
name: Android
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Java
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4
with:
distribution: 'adopt'
java-version: 17
- name: Install dart
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1
with:
sdk: 3.4
- name: Setup
run: ./tool/setup.sh
- name: Build
run: cd packages/neon_framework/example && fvm flutter build apk --split-per-abi --build-number="$(date +"%s")"
- uses: ilharp/sign-android-release@2034987c31e3959f7c97e88d5e656e52e6e88bd8 # v1
name: Sign
with:
releaseDir: packages/neon_framework/example/build/app/outputs/flutter-apk
signingKey: ${{ secrets.SIGNING_KEY }}
keyAlias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
with:
name: Android arm64-v8a
path: packages/neon_framework/example/build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk
if-no-files-found: error
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
with:
name: Android armeabi-v7a
path: packages/neon_framework/example/build/app/outputs/flutter-apk/app-armeabi-v7a-release-signed.apk
if-no-files-found: error
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
with:
name: Android x86_64
path: packages/neon_framework/example/build/app/outputs/flutter-apk/app-x86_64-release-signed.apk
if-no-files-found: error
- name: F-Droid nightly
run: |
cp packages/neon_framework/example/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk app-arm64-v8a-debug.apk
cp packages/neon_framework/example/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk app-armeabi-v7a-debug.apk
cp packages/neon_framework/example/build/app/outputs/flutter-apk/app-x86_64-release.apk app-x86_64-debug.apk
sudo add-apt-repository ppa:fdroid/fdroidserver
sudo apt-get update
sudo apt-get install apksigner fdroidserver python3-pip --no-install-recommends
sudo apt-get purge fdroidserver
pip3 install https://gitlab.com/fdroid/fdroidserver/-/archive/24b3b0957f170f04306b7aca246f8f3bfdfae074/fdroidserver.tar.gz
export DEBUG_KEYSTORE=${{ secrets.DEBUG_KEYSTORE }}
GITHUB_REPOSITORY=provokateurin/nextcloud-neon fdroid nightly -v --archive-older 10
linux:
name: Linux ${{ matrix.architecture.flutter }}
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
fail-fast: false
matrix:
architecture:
- docker: amd64
flutter: x64
- docker: arm64
flutter: arm64
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Login to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
with:
platforms: ${{ matrix.architecture.docker }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
with:
platforms: linux/${{ matrix.architecture.docker }}
- name: Install dart
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1
with:
sdk: 3.4
- name: Setup
run: ./tool/setup.sh
- name: Build
run: ./tool/build-app.sh linux/${{ matrix.architecture.docker }} --build-number="$(date +"%s")"
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
with:
name: Linux ${{ matrix.architecture.flutter }}
path: packages/neon_framework/example/build/linux/${{ matrix.architecture.flutter }}/release/bundle/*
if-no-files-found: error