From 57d3c5dba5480f69357452a456873e910013841c Mon Sep 17 00:00:00 2001 From: bjornoleh Date: Sat, 2 Dec 2023 22:04:13 +0100 Subject: [PATCH] Sync the GitHub runner clock with the Windows time server 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 --- .github/workflows/add_identifiers.yml | 4 ++++ .github/workflows/build_loop.yml | 6 +++++- .github/workflows/create_certs.yml | 4 ++++ .github/workflows/validate_secrets.yml | 4 ++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add_identifiers.yml b/.github/workflows/add_identifiers.yml index c57e72960e..9dc6eca47b 100644 --- a/.github/workflows/add_identifiers.yml +++ b/.github/workflows/add_identifiers.yml @@ -29,6 +29,10 @@ 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 # Create or update identifiers for app - name: Fastlane Provision diff --git a/.github/workflows/build_loop.yml b/.github/workflows/build_loop.yml index 0334baa1ce..3563cc5504 100644 --- a/.github/workflows/build_loop.yml +++ b/.github/workflows/build_loop.yml @@ -252,8 +252,12 @@ jobs: run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d" # Install project dependencies - - name: 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 Loop IPA file - name: Fastlane Build & Archive diff --git a/.github/workflows/create_certs.yml b/.github/workflows/create_certs.yml index faa62b32ce..cca2298874 100644 --- a/.github/workflows/create_certs.yml +++ b/.github/workflows/create_certs.yml @@ -29,6 +29,10 @@ 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 # Create or update certificates for app - name: Create Certificates diff --git a/.github/workflows/validate_secrets.yml b/.github/workflows/validate_secrets.yml index 6f3f4c746f..b5e6d9381c 100644 --- a/.github/workflows/validate_secrets.yml +++ b/.github/workflows/validate_secrets.yml @@ -127,6 +127,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: |