Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deploy android circleci job #558

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Nov 13, 2023

As part of #552, we added sdkman to install the correct java version. However, the deploy job in CircleCI runs in the root folder, as opposed to the test/lint jobs, which run in the android folder, so it wasn't actually installing the correct java version because there was no .sdkmanrc file in the root folder and was causing the deploy job to fail, as seen in PR 557 .

This adds a symlink in the root folder to the android folder so we have the same sdkmanrc in both locations.

An alternative would be to switch folders during the deploy job, but I wanted to keep it in the root folder if possible, seemed cleaner to me. Lmk if you think otherwise.

@tonidero tonidero added the pr:build Changes that affect the build system label Nov 13, 2023
@tonidero tonidero marked this pull request as ready for review November 13, 2023 13:31
@tonidero tonidero requested a review from a team November 13, 2023 13:31
Copy link
Contributor

@vegaro vegaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should work yes!

@tonidero tonidero merged commit 0ba6d71 into main Nov 13, 2023
8 checks passed
@tonidero tonidero deleted the fix-deploy-android-circleci-job branch November 13, 2023 14:38
tonidero added a commit that referenced this pull request Nov 13, 2023
As part of #552, we added sdkman to install the correct java version.
However, the deploy job in CircleCI runs in the root folder, as opposed
to the test/lint jobs, which run in the `android` folder, so it wasn't
actually installing the correct java version because there was no
`.sdkmanrc` file in the root folder and was causing the deploy job to
fail, as seen in [PR
557](https://app.circleci.com/pipelines/github/RevenueCat/purchases-hybrid-common/2622/workflows/e6029d52-84ae-4114-b293-4fa576a900c3/jobs/10735)
.

This adds a symlink in the root folder to the `android` folder so we
have the same sdkmanrc in both locations.

An alternative would be to switch folders during the deploy job, but I
wanted to keep it in the root folder if possible, seemed cleaner to me.
Lmk if you think otherwise.
NachoSoto pushed a commit that referenced this pull request Nov 15, 2023
**This is an automatic release.**

### Dependency Updates
* [AUTOMATIC] iOS 4.30.4 => 4.30.5 (#562) via RevenueCat Git Bot
(@RCGitBot)
* [AUTOMATIC] Android 7.2.2 => 7.2.3 (#560) via RevenueCat Git Bot
(@RCGitBot)
### Other Changes
* Improve circleci deploy automation (#559) via Toni Rico (@tonidero)
* Fix deploy android circleci job (#558) via Toni Rico (@tonidero)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:build Changes that affect the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants