-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit 43f0ccb
Use appropriate indicator for dependency installation conditionals in build workflow
The Windows builds of the application are cryptographically signed. The signing requires an "eToken" hardware
authentication device be connected to the machine performing the signing. This means that it is necessary to use a
self-hosted GitHub Actions runner for the Windows job of the build workflow rather than the runners hosted by GitHub.
There are some unique characteristics of the self-hosted runner which the workflow code must accommodate. One of these
is that, rather than installing dependencies of the build process during the workflow run as is done for the
GitHub-hosted runners, the dependencies are preinstalled in the self-hosted runner machine. So the dependency
installation steps must be configured so that they will be skipped when the job is running on the self-hosted runner.
This is done by adding a conditional to the steps. Previously the conditional was based on the value of the `runner.os`
context item. This is not an appropriate indicator of the job running on the self-hosted runner because `runner.os` will
have the same value if the job was running on a GitHub-hosted Windows runner. That might seem like only a hypothetical
problem since the workflow does not use a GitHub-hosted Windows runner. However, it is important to support the use of
the workflow in forks of the repository. In addition to the possible value to hard forked projects, this is essential to
allow conscientious contributors to test contributions to the build and release system in their own fork prior to
submitting a pull request.
The conditionals are changed to use the more appropriate indicator of the specific name of the self-hosted Windows
runner (via the `runner.name` context item).1 parent c0b0b84 commit 43f0ccb
1 file changed
+6
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
321 | 321 |
| |
322 | 322 |
| |
323 | 323 |
| |
324 | - | ||
324 | + | ||
325 | 325 |
| |
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
332 | - | ||
332 | + | ||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
338 | - | ||
338 | + | ||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 | - | ||
345 | + | ||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 | - | ||
351 | + | ||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
359 | - | ||
359 | + | ||
360 | 360 |
| |
361 | 361 |
| |
362 | 362 |
| |
|
0 commit comments