|
16 | 16 |
|
17 | 17 | jobs:
|
18 | 18 | start_action_runners:
|
19 |
| - name: Start action runners |
20 |
| - uses: glotzerlab/jetstream2-admin/.github/workflows/start.yaml@c5d1d59b0b3e069b611f4002bbba4d5ff8e01c60 |
| 19 | + name: Start |
| 20 | + uses: glotzerlab/jetstream2-admin/.github/workflows/start.yaml@a862161adac42e4173f3d142ebd4ddfcde54779b |
21 | 21 | secrets: inherit
|
22 | 22 |
|
23 | 23 | typical:
|
|
27 | 27 | with:
|
28 | 28 | config: ${{ join(matrix.config, '_') }}
|
29 | 29 | container_prefix: ${{ matrix.config[0] }}
|
| 30 | + # Use self-hosted runners or fall back to GitHub hosted runners when self-hosted are offline |
| 31 | + build_runner: ${{ needs.start_action_runners.outputs.active == '0' && 'ubuntu-latest') || '["self-hosted","jetstream2","CPU"]' }} |
30 | 32 | # Default to ubuntu-latest when unset
|
31 | 33 | test_runner: ${{ matrix.test_runner == '' && 'ubuntu-latest' || toJson(matrix.test_runner) }}
|
32 | 34 | test_docker_options: ${{ matrix.test_docker_options }}
|
@@ -73,16 +75,14 @@ jobs:
|
73 | 75 | with:
|
74 | 76 | config: ${{ join(matrix.config, '_') }}
|
75 | 77 | container_prefix: ${{ matrix.config[0] }}
|
| 78 | + # Use self-hosted runners or fall back to GitHub hosted runners when self-hosted are offline |
| 79 | + build_runner: ${{ needs.start_action_runners.outputs.active == '0' && 'ubuntu-latest') || '["self-hosted","jetstream2","CPU"]' }} |
76 | 80 | # Default to ubuntu-latest when unset
|
77 | 81 | test_runner: ${{ matrix.test_runner == '' && 'ubuntu-latest' || toJson(matrix.test_runner) }}
|
78 | 82 | test_docker_options: ${{ matrix.test_docker_options }}
|
79 | 83 | # Default to false when unset
|
80 | 84 | validate: ${{ matrix.validate == '' && 'false' || matrix.validate }}
|
81 | 85 |
|
82 |
| - # TODO: possible to implelemtn fallback to `ubuntu-latest` when actions runners are offline? |
83 |
| - |
84 |
| - # runs-on: ${{ needs.start_workflow.outputs.exit_code == 3 && 'ubuntu-20.04' || 'ubuntu-24.04' }} |
85 |
| - |
86 | 86 | strategy:
|
87 | 87 | fail-fast: false
|
88 | 88 | matrix:
|
|
0 commit comments