Skip to content

Commit 3efba42

Browse files
committed
fix: add timezone setup to build workflows to fix deprecated attribute linter (#28510)
## Problem The deprecated attribute linter was failing with timezone database errors: ``` unable to locate share/zoneinfo in the local timezone database at /etc/localtime ``` This was happening because the linter uses `Std.Time.PlainDate.now` to compare dates, which requires timezone information. ## Solution Add the `szenius/set-timezone@v2.0` action to all build workflows to ensure proper timezone configuration in CI environments. ## Changes - Added timezone setup step to `.github/build.in.yml` - Regenerated all build workflow files (`build.yml`, `bors.yml`, `build_fork.yml`) - The timezone setup runs after cleanup and before jq setup This should fix the deprecated attribute linter failures in CI. Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com>
1 parent c9ec0e2 commit 3efba42

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/build.in.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
: # Do nothing on failure, but suppress errors
6363
fi
6464
65+
- name: Setup timezone
66+
# This is needed so we can use Lean's date library to lint deprecated attributes
67+
uses: szenius/set-timezone@1f9716b0f7120e344f0c62bb7b1ee98819aefd42 # v2.0
68+
6569
# The Hoskinson runners may not have jq installed, so do that now.
6670
- name: 'Setup jq'
6771
uses: dcarbone/install-jq-action@f0e10f46ff84f4d32178b4b76e1ef180b16f82c3 # v3.1.1

.github/workflows/bors.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ jobs:
7272
: # Do nothing on failure, but suppress errors
7373
fi
7474
75+
- name: Setup timezone
76+
# This is needed so we can use Lean's date library to lint deprecated attributes
77+
uses: szenius/set-timezone@1f9716b0f7120e344f0c62bb7b1ee98819aefd42 # v2.0
78+
7579
# The Hoskinson runners may not have jq installed, so do that now.
7680
- name: 'Setup jq'
7781
uses: dcarbone/install-jq-action@f0e10f46ff84f4d32178b4b76e1ef180b16f82c3 # v3.1.1

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ jobs:
7979
: # Do nothing on failure, but suppress errors
8080
fi
8181
82+
- name: Setup timezone
83+
# This is needed so we can use Lean's date library to lint deprecated attributes
84+
uses: szenius/set-timezone@1f9716b0f7120e344f0c62bb7b1ee98819aefd42 # v2.0
85+
8286
# The Hoskinson runners may not have jq installed, so do that now.
8387
- name: 'Setup jq'
8488
uses: dcarbone/install-jq-action@f0e10f46ff84f4d32178b4b76e1ef180b16f82c3 # v3.1.1

.github/workflows/build_fork.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
: # Do nothing on failure, but suppress errors
7777
fi
7878
79+
- name: Setup timezone
80+
# This is needed so we can use Lean's date library to lint deprecated attributes
81+
uses: szenius/set-timezone@1f9716b0f7120e344f0c62bb7b1ee98819aefd42 # v2.0
82+
7983
# The Hoskinson runners may not have jq installed, so do that now.
8084
- name: 'Setup jq'
8185
uses: dcarbone/install-jq-action@f0e10f46ff84f4d32178b4b76e1ef180b16f82c3 # v3.1.1

0 commit comments

Comments
 (0)