-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
allow multiple targets #72
Comments
Could you share snippet of your workflow with which you run into this issue? AFAIK the As for running tests on multiple emulator instances in a single job, is the goal to save the time spent on assembling the apk and test apk? With build matrix and parallel jobs, though the I also doubt we'll have much success running multiple instances of emulators in the background. If we had to launch 1 emulator -> run the script -> kill emulator -> start next emulator -> run script again -> kill emulator .... it has to be order of magnitude slower than using build matrix. Maybe I'm missing some context here, so if you're able to share your high-level workflow setup / goals that'd be great! |
Oh I think I know what your tried to do now:
Yeah I haven't tested this scenario at all (and I'll fix that With this setup the |
yea this is what i've tried: https://github.com/yigit/kotlin-sqlite-bindings/actions/runs/135170355/workflow#L74 And this is why i thought about doing it initially: https://github.com/yigit/kotlin-sqlite-bindings/runs/770201597?check_suite_focus=true (couldn't find a runner) Running them in parallel is definitely faster in total completion time. That being said, this project compiles kotlin native etc so getting konan artifacts & building takes considerable time hence I thought it is much better to just do it on 1 machine. Even though it will take longer, it will consume much less resources. |
Ok let me fix #73 first so your original setup (sequential jobs) works. Then I'll look at the feasibility of running multiple emulator instances in 1 job. BTW looks like your second link has expired. |
Running multiple actions sequentially in a single job is now supported in |
Closing per #73 |
It would be really nice if I could set multiple targets in 1 action.
It is possible to do w/ matrix build but when the build itself is large, running it in parallel is not great. (lots of repeated builds)
I've tried executing multiple actions but second one fails when it tries to download the command line tools:
https://github.com/ReactiveCircus/android-emulator-runner/blob/master/src/sdk-installer.ts#L16
(mkdir fails since it already exists).
I'm looking for something like this:
It could be even better if it invoked all emulators at once but that might overload the CI so it is fine if each one runs 1 by 1. The whole goal here is to avoid the preliminary build steps.
A possible workaround is to build the apk in 1 job and depend on its apk output in another job and run it via adb but that is also quite custom and invoking the test via gradle is still preferable.
The text was updated successfully, but these errors were encountered: