Skip to content

Commit 965cc5c

Browse files
authored
Sync the GitHub runner clock with the Windows time server (LoopKit#98)
Adding a step to workflow jobs that interface Apple servers, as a workaround for build issues caused by runner clocks being out of sync. See https://github.com/actions/runner issue number 2996 for details. name: Sync clock run: sudo sntp -sS time.windows.com Added to the following workflows / jobs: validate_secrets.yml / validate-fastlane-secrets add_identifiers.yml / identifiers build_loop.yml / build create_certs.yml / certificates
1 parent 6b7bba6 commit 965cc5c

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

.github/workflows/add_identifiers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
# Install project dependencies
3030
- name: Install Project Dependencies
3131
run: bundle install
32+
33+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
34+
- name: Sync clock
35+
run: sudo sntp -sS time.windows.com
3236

3337
# Create or update identifiers for app
3438
- name: Fastlane Provision

.github/workflows/build_loop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,12 @@ jobs:
252252
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
253253

254254
# Install project dependencies
255-
- name: Install project dependencies
255+
- name: Install Project Dependencies
256256
run: bundle install
257+
258+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
259+
- name: Sync clock
260+
run: sudo sntp -sS time.windows.com
257261

258262
# Build signed Loop IPA file
259263
- name: Fastlane Build & Archive

.github/workflows/create_certs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
# Install project dependencies
3030
- name: Install Project Dependencies
3131
run: bundle install
32+
33+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
34+
- name: Sync clock
35+
run: sudo sntp -sS time.windows.com
3236

3337
# Create or update certificates for app
3438
- name: Create Certificates

.github/workflows/validate_secrets.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ jobs:
127127

128128
- name: Install Project Dependencies
129129
run: bundle install
130+
131+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
132+
- name: Sync clock
133+
run: sudo sntp -sS time.windows.com
130134

131135
- name: Validate Fastlane Secrets
132136
run: |

0 commit comments

Comments
 (0)