Skip to content

Commit 115bd59

Browse files
committed
[ci] Don't use timedatectl to set timezone in actions
Multiple Test SDK builds jobs failed recently. This may be caused by hosted runner environments run systemd services in a restricted contrainer state, blocking DBus connections required by timedatectl. Replace by linking the system zoneinfo to set the timezone. Signed-off-by: Changlei Li <changlei.li@citrix.com>
1 parent b59864f commit 115bd59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/generate-and-build-sdks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
# isn't using UTC
7474
- name: Set Timezone to Tokyo for datetime tests
7575
run: |
76-
sudo timedatectl set-timezone Asia/Tokyo
76+
sudo ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
7777
7878
- name: Run CI for SDKs
7979
uses: ./.github/workflows/sdk-ci
@@ -139,7 +139,7 @@ jobs:
139139
# isn't using UTC
140140
- name: Set Timezone to Tokyo for datetime tests
141141
run: |
142-
sudo timedatectl set-timezone Asia/Tokyo
142+
sudo ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
143143
144144
- name: Build Java SDK
145145
shell: bash

0 commit comments

Comments
 (0)