Skip to content

Commit

Permalink
build: Comment out android CI until we figure out intermittent failure
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Oct 21, 2023
1 parent f85c95a commit 068fd67
Showing 1 changed file with 71 additions and 71 deletions.
142 changes: 71 additions & 71 deletions .github/workflows/central.yml
Expand Up @@ -118,74 +118,74 @@ jobs:
# with:
# name: macos-zip
# path: ./intiface-central-macos-universal.zip
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Setup NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r25b
local-cache: true
- name: Restore keystore
uses: timheuer/base64-to-file@v1.2
with:
fileName: 'key.properties'
fileDir: './android'
encodedString: ${{ secrets.NPLABS_ANDROID_PROPERTIES }}
- name: Restore keystore
uses: timheuer/base64-to-file@v1.2
with:
fileName: 'upload-keystore.jks'
fileDir: './android/app'
encodedString: ${{ secrets.NPLABS_ANDROID_STORE }}
- name: rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: aarch64-linux-android
toolchain: stable
override: true
- name: rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: armv7-linux-androideabi
toolchain: stable
override: true
- name: Install cargo-make
run: cargo install cargo-make
- name: Build rust android library
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
RANLIB: ${{ format('{0}{1}', steps.setup-ndk.outputs.ndk-path, '/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib') }}
run: cargo make build-android
working-directory: intiface-engine-flutter-bridge
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
- run: flutter config
name: flutter config
- run: flutter build apk --release --dart-define="SENTRY_DSN=${{ secrets.SENTRY_DSN }}"
name: flutter build apk
- run: flutter build appbundle
name: flutter build appbundle --release --dart-define="SENTRY_DSN=${{ secrets.SENTRY_DSN }}"
- name: Archive production artifacts (APK)
uses: actions/upload-artifact@v3
with:
name: Android APK
path: |
build/app/outputs/flutter-apk/*.apk
- name: Archive production artifacts (appbundle)
uses: actions/upload-artifact@v3
with:
name: Android App Bundle
path: |
build/app/outputs/bundle/release/*.aab
# android:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-java@v2
# with:
# distribution: 'zulu'
# java-version: '17'
# - name: Setup NDK
# uses: nttld/setup-ndk@v1
# id: setup-ndk
# with:
# ndk-version: r25b
# local-cache: true
# - name: Restore keystore
# uses: timheuer/base64-to-file@v1.2
# with:
# fileName: 'key.properties'
# fileDir: './android'
# encodedString: ${{ secrets.NPLABS_ANDROID_PROPERTIES }}
# - name: Restore keystore
# uses: timheuer/base64-to-file@v1.2
# with:
# fileName: 'upload-keystore.jks'
# fileDir: './android/app'
# encodedString: ${{ secrets.NPLABS_ANDROID_STORE }}
# - name: rust toolchain
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# target: aarch64-linux-android
# toolchain: stable
# override: true
# - name: rust toolchain
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# target: armv7-linux-androideabi
# toolchain: stable
# override: true
# - name: Install cargo-make
# run: cargo install cargo-make
# - name: Build rust android library
# env:
# ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
# RANLIB: ${{ format('{0}{1}', steps.setup-ndk.outputs.ndk-path, '/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib') }}
# run: cargo make build-android
# working-directory: intiface-engine-flutter-bridge
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# cache: true
# cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
# - run: flutter config
# name: flutter config
# - run: flutter build apk --release --dart-define="SENTRY_DSN=${{ secrets.SENTRY_DSN }}"
# name: flutter build apk
# - run: flutter build appbundle
# name: flutter build appbundle --release --dart-define="SENTRY_DSN=${{ secrets.SENTRY_DSN }}"
# - name: Archive production artifacts (APK)
# uses: actions/upload-artifact@v3
# with:
# name: Android APK
# path: |
# build/app/outputs/flutter-apk/*.apk
# - name: Archive production artifacts (appbundle)
# uses: actions/upload-artifact@v3
# with:
# name: Android App Bundle
# path: |
# build/app/outputs/bundle/release/*.aab

0 comments on commit 068fd67

Please sign in to comment.