Commit 912a174
committed
Automatically spin up a self-hosted ARM64 runner as needed
When we receive an event indicating that a workflow job was queued that
requires a Windows/ARM64 runner, let's let our automation do its magic
and create a new such runner.
It does take a bit of patience to do it this way: whenever a new
workflow job is queued, it takes about 7-8 minutes to create the new
runner.
An alternative would be to pre-allocate runner VMs, and immediately
deallocate them to await being started when needed. But even that
start-up time takes a couple of minutes and would not be immediate.
Besides, it would cost quite a lot more Azure credits: merely keeping
around a fast disk has a non-negligible cost.
Yet another alternative would be to pre-allocate runner VMs and keep
them running. However, that way we would quite handily run through all
of the monthly-available Azure credits in no time.
So let's just go with the 7-8 minutes solution, it's not like we're
intending to run many more than a dozen Windows/ARM64 builds per month.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 0c27905 commit 912a174
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
38 | 56 | | |
39 | 57 | | |
0 commit comments