Try to change CI/CD to build out both versions and upload #684
This file contains 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: 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 |