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

Change agent to mac-os latest #609

Merged

Conversation

KovalevAndrey
Copy link
Collaborator

@KovalevAndrey KovalevAndrey commented Oct 4, 2023

Description

Release action can not publish iOS targets since the agent is not a macOS. We need to change agents to support that.

Check list

  • I have updated CHANGELOG.md if required.
  • I have updated documentation if required.

@KovalevAndrey KovalevAndrey force-pushed the 2.x-change-agent-to-mac-os branch from 8a96de2 to dc86b74 Compare October 4, 2023 16:49
@@ -14,7 +14,7 @@ env:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: macOS-latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a limit on mac-os agents per repo, makes sense to check of we can merge with instrumentation tests (both variants). Definitely makes sense to merge with Publication verification, both builds all libs, the second one just does simple job on packing and posting to local folder. It will reduce amount of unique caches. But fine to do as a separate PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would suggest instead separately into even more granular jobs instead.
i.e. a job that builds:

  • Android (ubuntu)
  • Web (ubuntu)
  • Desktop (ubuntu)
  • iOS (mac)

or at the very least split iOS build into its own job instead. This will reduce the amount of agents used overall by parallel PRs as the iOS build job would finish a lot faster.

Copy link
Collaborator

@CherryPerry CherryPerry Oct 6, 2023

Choose a reason for hiding this comment

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

I would suggest instead separately into even more granular jobs instead.

It is such a pain to set up and support it 😭 either specifying manually all platform related tasks, or relying on filtering plugins (trust me, but this particular approach does not work anymore because of Gradle updates).

If you are ready to do it, will support you!

@@ -162,7 +162,7 @@ jobs:

check-documentation:
name: Check documentation
runs-on: ubuntu-latest
runs-on: macOS-latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Documentation builds only JS, it is fine to stay on ubuntu.

@@ -9,7 +9,7 @@ on:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
runs-on: macOS-latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Documentation builds only JS, it is fine to stay on ubuntu.
Also this one does not have Generate distributions step from check.

coroutines = "1.6.4"
dependencyAnalysis = "1.13.1"
detekt = "1.21.0"
junit5 = "5.8.2"
jvmTarget = "11"
kotlin = "1.8.10"
ksp = "1.8.0-1.0.8"
kotlin = "1.9.10"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Too early, we might not be able to use this version internally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

You can set xcode version to the one that is currently supported (idk which one on 1.8, just try)
https://github.com/badoo/Reaktive/blob/master/.github/workflows/build.yml#L27

@KovalevAndrey KovalevAndrey force-pushed the 2.x-change-agent-to-mac-os branch from 35bc01c to 090a244 Compare October 6, 2023 17:02
@KovalevAndrey KovalevAndrey force-pushed the 2.x-change-agent-to-mac-os branch from 090a244 to 7b9ce51 Compare October 6, 2023 17:34
@KovalevAndrey KovalevAndrey merged commit dbb51b3 into bumble-tech:2.x Apr 24, 2024
7 checks passed
@KovalevAndrey KovalevAndrey deleted the 2.x-change-agent-to-mac-os branch April 24, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants