Skip to content

Commit

Permalink
Attempt fixing android build
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeepnanua-okta committed Sep 11, 2023
1 parent 3cb8823 commit d169799
Showing 1 changed file with 50 additions and 7 deletions.
57 changes: 50 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: 2.1
orbs:
general-platform-helpers: okta/[email protected]
node: circleci/[email protected]
android: circleci/[email protected]

executors:
apple-ci-arm-medium:
Expand All @@ -12,7 +11,7 @@ executors:
resource_class: macos.m1.medium.gen1

jobs:
setup:
setup-js:
executor: apple-ci-arm-medium
steps:
- checkout
Expand All @@ -21,12 +20,40 @@ jobs:
node-version: 'latest'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: (cd e2e; yarn install --frozen-lockfile)
- persist_to_workspace:
root: ~/project
paths:
- .

setup-android:
docker:
- image: cimg/android:2023.09-ndk
resource_class: large
steps:
- attach_workspace:
at: ~/project
- node/install:
install-yarn: true
node-version: 'latest'
- run: (cd android; ./gradlew assembleDebug)
- run: (cd e2e/android; echo "signInRedirectUri=com.example.redirect:/login" > okta.properties; ./gradlew assembleDebug)
- persist_to_workspace:
root: ~/project
paths:
- .

setup-ios:
executor: apple-ci-arm-medium
steps:
- attach_workspace:
at: ~/project
- node/install:
install-yarn: true
node-version: 'latest'
- run: gem install cocoapods
- run: (cd ios; pod install)
- run: (cd android; ./gradlew assembleDebug)
- run: (cd e2e; yarn install --frozen-lockfile; yarn build)
- run: (cd e2e/ios; pod install)
- run: (cd e2e/android; echo "signInRedirectUri=com.example.redirect:/login" > okta.properties; ./gradlew assembleDebug)
- persist_to_workspace:
root: ~/project
paths:
Expand All @@ -50,7 +77,21 @@ jobs:
workflows:
security-scan:
jobs:
- setup
- setup-js
#filters:
# branches:
# only:
# - master
- setup-android:
requires:
- setup-js
#filters:
# branches:
# only:
# - master
- setup-ios:
requires:
- setup-android
#filters:
# branches:
# only:
Expand All @@ -62,7 +103,9 @@ workflows:
# only:
# - master
requires:
- setup
- setup-js
- setup-android
- setup-ios
- snyk-scan:
name: execute-snyk
#filters:
Expand Down

0 comments on commit d169799

Please sign in to comment.