Browse Source

Explicitly set timezone for debian build

Maximilian Luz 5 năm trước cách đây
mục cha
commit
561e79f032
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 3 0
      .github/workflows/debian.yml
  2. 3 0
      .github/workflows/debian_lts.yml

+ 3 - 0
.github/workflows/debian.yml

@@ -12,6 +12,7 @@ env:
   LOCALVERSION: -surface
   MAINLINE_REPO: git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
   MAINLINE_BRANCH: cod/mainline
+  TZ: UTC
 
 jobs:
   build:
@@ -25,6 +26,8 @@ jobs:
     - name: Install build dependencies
       run: |
         sed 's/^deb /deb-src /' /etc/apt/sources.list >> /etc/apt/sources.list
+        ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
+        echo $TZ > /etc/timezone
         apt-get -y update
         apt-get -y install build-essential fakeroot rsync git wget python3-debian dpkg-sig lz4 sbsigntool
         apt-get -y build-dep linux

+ 3 - 0
.github/workflows/debian_lts.yml

@@ -12,6 +12,7 @@ env:
   LOCALVERSION: -surface-lts
   MAINLINE_REPO: git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
   MAINLINE_BRANCH: cod/mainline
+  TZ: UTC
 
 jobs:
   build:
@@ -25,6 +26,8 @@ jobs:
     - name: Install build dependencies
       run: |
         sed 's/^deb /deb-src /' /etc/apt/sources.list >> /etc/apt/sources.list
+        ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
+        echo $TZ > /etc/timezone
         apt-get -y update
         apt-get -y install build-essential fakeroot rsync git wget python3-debian dpkg-sig lz4 sbsigntool
         apt-get -y build-dep linux