Commit Graph

9 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
f3fa7e57a5 Try to workaround OOM errors and the runners dying (#3013)
* Try to workaround OOM errors and the runner dying

* Some more tweaks:

- Add `-XX:MaxMetaspaceSize` (https://github.com/gradle/gradle/issues/19750)
- Remove `-PpreDexEnable` as it's deprecated and no longer used.
- Remove `--max-workers` as gradle will automatically use the optimal amount.

* Remove `--max-workers` in recording screenshots too
2024-06-12 15:35:51 +02:00
Jorge Martín
0cef150147 Fix record screenshots workflow and script 2024-01-02 10:43:57 +01:00
Jorge Martin Espinosa
b1f2370e72 Run 'record screenshots' flow if label is present (#1860)
* Run 'record screenshots' flow if label is present

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-23 08:25:33 +01:00
Benoit Marty
589e785c62 Ensure previous screenshots are deleted. Sometimes, the registered task is not trigger, I do not know why... 2023-07-18 14:56:48 +02:00
Chris Smith
8f03948e32 Improve screenshot action error handling
If the gradle build fails for some reason, the script should
bail out instead of carrying on and pushing a commit that
deletes all the screenshots[1]!

`set -e` simply makes the script return the appropriate
exit code immediately if any of the subcommands fails.

[1] e.g.
529a7c87ef
2023-06-30 10:14:32 +01:00
Jorge Martin Espinosa
d55b1d5fce Try using ElementBot for recording screenshots too (#641) 2023-06-20 14:31:52 +02:00
Benoit Marty
470902d281 Iterate on the script #2 2023-06-02 17:20:36 +02:00
Benoit Marty
26fb2ea238 Iterate on the script 2023-06-02 16:40:41 +02:00
Benoit Marty
bc352ba9de Add GitHub workflow to record screenshots when manually triggered. 2023-06-02 16:16:29 +02:00