Skip to content

Commit

Permalink
Sync the GitHub runner clock with the Windows time server (#404)
Browse files Browse the repository at this point in the history
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_iAPS.yml / build
- create_certs.yml / certificates
  • Loading branch information
bjornoleh authored Dec 2, 2023
1 parent fab1cbd commit cb67cbe
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/add_identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
- name: Install Project Dependencies
run: bundle install

# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
- name: Sync clock
run: sudo sntp -sS time.windows.com

# Create or update identifiers for app
- name: Fastlane Provision
run: bundle exec fastlane identifiers
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build_iAPS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ jobs:
# Install project dependencies
- name: Install project dependencies
run: bundle install


# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
- name: Sync clock
run: sudo sntp -sS time.windows.com

# Build signed iAPS IPA file
- name: Fastlane Build & Archive
run: bundle exec fastlane build_iAPS
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/create_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
- name: Install Project Dependencies
run: bundle install

# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
- name: Sync clock
run: sudo sntp -sS time.windows.com

# Create or update certificates for app
- name: Create Certificates
run: bundle exec fastlane certs
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/validate_secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ jobs:
- name: Install Project Dependencies
run: bundle install

# Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
- name: Sync clock
run: sudo sntp -sS time.windows.com

- name: Validate Fastlane Secrets
run: |
# Validate Fastlane Secrets
Expand Down

0 comments on commit cb67cbe

Please sign in to comment.