From d8feb78952cdc2701ca5bb8cfe3d805eb57c6923 Mon Sep 17 00:00:00 2001 From: bjornoleh Date: Sat, 2 Dec 2023 21:11: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_xdrip.yml / build create_certs.yml / certificates --- .github/workflows/add_identifiers.yml | 4 ++++ .github/workflows/build_xdrip.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 77248484d..cef4986ff 100644 --- a/.github/workflows/add_identifiers.yml +++ b/.github/workflows/add_identifiers.yml @@ -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 identifiers for app - name: Fastlane Provision run: bundle exec fastlane identifiers diff --git a/.github/workflows/build_xdrip.yml b/.github/workflows/build_xdrip.yml index 3f3806eb4..d88e2e336 100644 --- a/.github/workflows/build_xdrip.yml +++ b/.github/workflows/build_xdrip.yml @@ -224,8 +224,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 Xdrip4iOS IPA file - name: Fastlane Build & Archive diff --git a/.github/workflows/create_certs.yml b/.github/workflows/create_certs.yml index d80caacbe..bb92663df 100644 --- a/.github/workflows/create_certs.yml +++ b/.github/workflows/create_certs.yml @@ -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 diff --git a/.github/workflows/validate_secrets.yml b/.github/workflows/validate_secrets.yml index 03735afc5..b3c5062b2 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: |