Skip to content

Commit 112e112

Browse files
committed
Use git-restore-mtime action instead of installing the script and running it ourselves
1 parent fb1e75f commit 112e112

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,16 @@ jobs:
6060
with:
6161
fetch-depth: 0
6262

63+
- name: Restore timestamps
64+
uses: chetan/git-restore-mtime-action@v2
65+
with:
66+
args: -q
67+
6368
- name: Setup dependencies
6469
run: |
6570
sudo dpkg --add-architecture i386
6671
sudo apt-get update -y -qq || true
6772
sudo apt-get -qq install libc6:i386
68-
sudo apt-get -qq install git-restore-mtime
6973
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
7074
7175
- name: Install adtools build env
@@ -89,7 +93,6 @@ jobs:
8993
timeout-minutes: 480
9094
run: |
9195
export PATH=/usr/local/amiga/bin:/opt/m68k-amigaos/bin:/opt/ppc-amigaos/bin:/opt/ppc-morphos/bin:${PATH}
92-
git restore-mtime -q
9396
./scripts/mkdist.sh nightly ${{ matrix.platform }}
9497
9598
- name: Upload nightly build archive
@@ -145,11 +148,15 @@ jobs:
145148
with:
146149
fetch-depth: 0
147150

151+
- name: Restore timestamps
152+
uses: chetan/git-restore-mtime-action@v2
153+
with:
154+
args: -q
155+
148156
- name: Setup dependencies
149157
run: |
150158
sudo apt-get update -y -qq || true
151159
sudo apt-get -qq install rsync
152-
sudo apt-get -qq install git-restore-mtime
153160
154161
- name: Add repository to git safe directories
155162
run: |
@@ -159,7 +166,6 @@ jobs:
159166
- name: Build YAM nightly
160167
timeout-minutes: 480
161168
run: |
162-
git restore-mtime -q
163169
./scripts/mkdist.sh nightly os4
164170
165171
- name: Upload nightly build archive

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,16 @@ jobs:
7878
with:
7979
fetch-depth: 0
8080

81+
- name: Restore timestamps
82+
uses: chetan/git-restore-mtime-action@v2
83+
with:
84+
args: -q
85+
8186
- name: Setup dependencies
8287
run: |
8388
sudo dpkg --add-architecture i386
8489
sudo apt-get update -y -qq || true
8590
sudo apt-get -qq install libc6:i386
86-
sudo apt-get -qq install git-restore-mtime
8791
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
8892
8993
- name: Install adtools build env
@@ -102,7 +106,6 @@ jobs:
102106
timeout-minutes: 480
103107
run: |
104108
export PATH=/usr/local/amiga/bin:/opt/m68k-amigaos/bin:/opt/ppc-amigaos/bin:/opt/ppc-morphos/bin:${PATH}
105-
git restore-mtime -q
106109
./scripts/mkdist.sh release ${{ matrix.platform }}
107110
108111
- name: Upload release files as workflow artifact
@@ -134,11 +137,15 @@ jobs:
134137
with:
135138
fetch-depth: 0
136139

140+
- name: Restore timestamps
141+
uses: chetan/git-restore-mtime-action@v2
142+
with:
143+
args: -q
144+
137145
- name: Setup dependencies
138146
run: |
139147
sudo apt-get update -y -qq || true
140148
sudo apt-get -qq install rsync
141-
sudo apt-get -qq install git-restore-mtime
142149
143150
- name: Add repository to git safe directories
144151
run: |
@@ -148,7 +155,6 @@ jobs:
148155
- name: Build YAM release
149156
timeout-minutes: 480
150157
run: |
151-
git restore-mtime -q
152158
./scripts/mkdist.sh release os4
153159
154160
- name: Upload release files as workflow artifact

0 commit comments

Comments
 (0)