Skip to content

Try to change CI/CD to build out both versions and upload #684

Try to change CI/CD to build out both versions and upload

Try to change CI/CD to build out both versions and upload #684

Workflow file for this run

name: Android Build SDK
on:
pull_request
# release:
# types: [released]
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install dependencies
run: yarn
- name: Test and Lint
run: |
yarn ganache &
yarn test
yarn lint
build-android-eoa:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use EOA config file
run: |
rm .env
mv .env.eoa .env
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install dependencies
run: yarn
- name: Build Android Release
run:
cd android
./gradlew app:assembleRelease
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: app-release-eoa.apk
path: android/app/build/outputs/apk/release/app-release.apk
build-android-relay:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install dependencies
run: yarn
- name: Build Android Release
run:
cd android
./gradlew app:assembleRelease
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: app-release-relay.apk
path: android/app/build/outputs/apk/release/app-release.apk