Skip to content

Commit

Permalink
Add sntp command for setting time to prevent sign failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Akamig committed Nov 27, 2023
1 parent 38cf68d commit 147fcb7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
steps:
- uses: actions/[email protected]

- name: Sync time on Ubuntu
if: runner.os == 'Linux'
run: sudo chronyc -a makestep

- name: Sync time on macOS
if: runner.os == 'macOS'
run: sudo sntp -sS time.apple.com

- name: Copy builder config
shell: bash
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: sudo sntp -sS time.apple.com

- name: Copy builder config
shell: bash
Expand Down

0 comments on commit 147fcb7

Please sign in to comment.