From 9a7fe6de558538a73144867f9baead9eb6951403 Mon Sep 17 00:00:00 2001 From: Akamig Date: Mon, 27 Nov 2023 21:44:52 +0900 Subject: [PATCH] Add sntp command for setting time to prevent sign failure --- .github/workflows/build.yml | 8 ++++++++ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18d57381c..df092ee29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,14 @@ jobs: steps: - uses: actions/checkout@v3.6.0 + - name: Sync time on Ubuntu + if: runner.os == 'Linux' + run: sudo chronyc -a makestep + + - name: Sync time on macOS + if: runner.os == 'macOS' + run: sntp -sS pool.ntp.org + - name: Copy builder config shell: bash run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01af1922c..946aa0f50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,14 @@ jobs: with: distribution: "temurin" java-version: "11" + + - name: Sync time on Ubuntu + if: runner.os == 'Linux' + run: sudo chronyc -a makestep + + - name: Sync time on macOS + if: runner.os == 'macOS' + run: sntp -sS pool.ntp.org - name: Copy builder config shell: bash