Skip to content

Commit 81a3d9b

Browse files
authored
Sync the GitHub runner clock with the Windows time server (#99)
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 279e6c5 commit 81a3d9b

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.github/workflows/add_identifiers.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
# Patch Fastlane Match to not print tables
2424
- name: Patch Match Tables
2525
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
26-
26+
27+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
28+
- name: Sync clock
29+
run: sudo sntp -sS time.windows.com
30+
2731
# Create or update identifiers for app
2832
- name: Fastlane Provision
2933
run: fastlane identifiers

.github/workflows/build_loop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
- name: Patch Match Tables
3434
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
3535

36+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
37+
- name: Sync clock
38+
run: sudo sntp -sS time.windows.com
39+
3640
# Build signed Loop IPA file
3741
- name: Fastlane Build & Archive
3842
run: fastlane build_loop

.github/workflows/create_certs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
# Patch Fastlane Match to not print tables
2424
- name: Patch Match Tables
2525
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
26-
26+
27+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
28+
- name: Sync clock
29+
run: sudo sntp -sS time.windows.com
30+
2731
# Create or update certificates for app
2832
- name: Create Certificates
2933
run: fastlane certs

.github/workflows/validate_secrets.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
- name: Checkout Repo
1111
uses: actions/checkout@v3
1212

13+
# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
14+
- name: Sync clock
15+
run: sudo sntp -sS time.windows.com
16+
1317
# Validates the repo secrets
1418
- name: Validate Secrets
1519
run: |

0 commit comments

Comments
 (0)