Skip to content

Commit ad41122

Browse files
authored
Ensure Docker service is running in workflow (#56)
See actions/runner-images#13729.
1 parent d5c8183 commit ad41122

5 files changed

Lines changed: 77 additions & 0 deletions

File tree

.github/workflows/arm-windows.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
fail-fast: false
2424
runs-on: windows-${{ matrix.os }}
2525
steps:
26+
# https://github.com/actions/runner-images/issues/13729
27+
- name: Ensure Docker is running (Windows)
28+
shell: pwsh
29+
run: |
30+
Start-Service docker
31+
for ($i = 0; $i -lt 30; $i++) {
32+
docker info *> $null
33+
if ($LASTEXITCODE -eq 0) { exit 0 }
34+
Start-Sleep 2
35+
}
36+
docker info
2637
- name: 'Checkout GitHub Action'
2738
uses: actions/checkout@main
2839
- if: github.event_name != 'pull_request'
@@ -53,6 +64,17 @@ jobs:
5364
fail-fast: false
5465
runs-on: windows-${{ matrix.os }}
5566
steps:
67+
# https://github.com/actions/runner-images/issues/13729
68+
- name: Ensure Docker is running (Windows)
69+
shell: pwsh
70+
run: |
71+
Start-Service docker
72+
for ($i = 0; $i -lt 30; $i++) {
73+
docker info *> $null
74+
if ($LASTEXITCODE -eq 0) { exit 0 }
75+
Start-Sleep 2
76+
}
77+
docker info
5678
- name: 'Checkout GitHub Action'
5779
uses: actions/checkout@main
5880
- if: github.event_name != 'pull_request'
@@ -96,6 +118,17 @@ jobs:
96118
fail-fast: false
97119
runs-on: windows-${{ matrix.os }}
98120
steps:
121+
# https://github.com/actions/runner-images/issues/13729
122+
- name: Ensure Docker is running (Windows)
123+
shell: pwsh
124+
run: |
125+
Start-Service docker
126+
for ($i = 0; $i -lt 30; $i++) {
127+
docker info *> $null
128+
if ($LASTEXITCODE -eq 0) { exit 0 }
129+
Start-Sleep 2
130+
}
131+
docker info
99132
- uses: actions/checkout@main
100133
- if: github.event_name != 'pull_request'
101134
uses: docker/login-action@v4

.github/workflows/rh850-windows.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ jobs:
2222
os: [ 2022, 2025 ]
2323
runs-on: windows-${{ matrix.os }}
2424
steps:
25+
# https://github.com/actions/runner-images/issues/13729
26+
- name: Ensure Docker is running (Windows)
27+
shell: pwsh
28+
run: |
29+
Start-Service docker
30+
for ($i = 0; $i -lt 30; $i++) {
31+
docker info *> $null
32+
if ($LASTEXITCODE -eq 0) { exit 0 }
33+
Start-Sleep 2
34+
}
35+
docker info
2536
- uses: actions/checkout@main
2637
- if: github.event_name != 'pull_request'
2738
uses: docker/login-action@v4

.github/workflows/riscv-windows.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ jobs:
2525
os: [ 2022, 2025 ]
2626
runs-on: windows-${{ matrix.os }}
2727
steps:
28+
# https://github.com/actions/runner-images/issues/13729
29+
- name: Ensure Docker is running (Windows)
30+
shell: pwsh
31+
run: |
32+
Start-Service docker
33+
for ($i = 0; $i -lt 30; $i++) {
34+
docker info *> $null
35+
if ($LASTEXITCODE -eq 0) { exit 0 }
36+
Start-Sleep 2
37+
}
38+
docker info
2839
- uses: actions/checkout@main
2940
- if: github.event_name != 'pull_request'
3041
uses: docker/login-action@v4

.github/workflows/rl78-windows.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
os: [ 2022, 2025 ]
2424
runs-on: windows-${{ matrix.os }}
2525
steps:
26+
# https://github.com/actions/runner-images/issues/13729
27+
- name: Ensure Docker is running (Windows)
28+
shell: pwsh
29+
run: |
30+
Start-Service docker
31+
for ($i = 0; $i -lt 30; $i++) {
32+
docker info *> $null
33+
if ($LASTEXITCODE -eq 0) { exit 0 }
34+
Start-Sleep 2
35+
}
36+
docker info
2637
- uses: actions/checkout@main
2738
- if: github.event_name != 'pull_request'
2839
uses: docker/login-action@v4

.github/workflows/rx-windows.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ jobs:
2222
os: [ 2022, 2025 ]
2323
runs-on: windows-${{ matrix.os }}
2424
steps:
25+
# https://github.com/actions/runner-images/issues/13729
26+
- name: Ensure Docker is running (Windows)
27+
shell: pwsh
28+
run: |
29+
Start-Service docker
30+
for ($i = 0; $i -lt 30; $i++) {
31+
docker info *> $null
32+
if ($LASTEXITCODE -eq 0) { exit 0 }
33+
Start-Sleep 2
34+
}
35+
docker info
2536
- uses: actions/checkout@main
2637
- if: github.event_name != 'pull_request'
2738
uses: docker/login-action@v4

0 commit comments

Comments
 (0)