Skip to content

Commit e2b34d0

Browse files
committed
normalize linux tarballs
1 parent 4ed272d commit e2b34d0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
submodules: recursive
1414
persist-credentials: false
15-
- name: Ensure reproducibility
15+
- name: Set SOURCE_DATE_EPOCH
1616
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
1717
- name: Install Node.js
1818
uses: actions/setup-node@v4
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
submodules: recursive
5050
persist-credentials: false
51-
- name: Ensure reproducibility
51+
- name: Set SOURCE_DATE_EPOCH
5252
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
5353
- name: Install Node.js
5454
uses: actions/setup-node@v4
@@ -66,6 +66,10 @@ jobs:
6666
node release-automation/build.js --mac-legacy-10.13-10.14 --mac-legacy-10.15 --x64
6767
env:
6868
DEBUG: electron-builder
69+
- name: Normalize tarballs for reproducibility
70+
run: |
71+
sudo apt install strip-nondeterminism
72+
strip-nondeterminism dist/*.tar.gz
6973
- name: Debug info
7074
run: node scripts/print-file-tree.js dist
7175
- name: Upload artifacts to GitHub Actions
@@ -95,13 +99,13 @@ jobs:
9599
run: |
96100
Copy-Item -Path repo -Destination D:\repo -Recurse
97101
Remove-Item -Path repo -Recurse -Force
102+
- name: Set SOURCE_DATE_EPOCH
103+
working-directory: D:\repo
104+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $env:GITHUB_ENV
98105
- name: Install Node.js
99106
uses: actions/setup-node@v4
100107
with:
101108
node-version: 22
102-
- name: Ensure reproducibility
103-
working-directory: D:\repo
104-
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $env:GITHUB_ENV
105109
# The repository being on D: means that node_modules IO will be fast, but npm still downloads
106110
# packages to a temporary folder for caching which is on C: by default. We need to make sure
107111
# npm uses the D: drive instead otherwise we still get bottlenecked by C:.

0 commit comments

Comments
 (0)