|
12 | 12 | with: |
13 | 13 | submodules: recursive |
14 | 14 | persist-credentials: false |
15 | | - - name: Ensure reproducibility |
| 15 | + - name: Set SOURCE_DATE_EPOCH |
16 | 16 | run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV |
17 | 17 | - name: Install Node.js |
18 | 18 | uses: actions/setup-node@v4 |
|
48 | 48 | with: |
49 | 49 | submodules: recursive |
50 | 50 | persist-credentials: false |
51 | | - - name: Ensure reproducibility |
| 51 | + - name: Set SOURCE_DATE_EPOCH |
52 | 52 | run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV |
53 | 53 | - name: Install Node.js |
54 | 54 | uses: actions/setup-node@v4 |
|
66 | 66 | node release-automation/build.js --mac-legacy-10.13-10.14 --mac-legacy-10.15 --x64 |
67 | 67 | env: |
68 | 68 | DEBUG: electron-builder |
| 69 | + - name: Normalize tarballs for reproducibility |
| 70 | + run: | |
| 71 | + sudo apt install strip-nondeterminism |
| 72 | + strip-nondeterminism dist/*.tar.gz |
69 | 73 | - name: Debug info |
70 | 74 | run: node scripts/print-file-tree.js dist |
71 | 75 | - name: Upload artifacts to GitHub Actions |
@@ -95,13 +99,13 @@ jobs: |
95 | 99 | run: | |
96 | 100 | Copy-Item -Path repo -Destination D:\repo -Recurse |
97 | 101 | 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 |
98 | 105 | - name: Install Node.js |
99 | 106 | uses: actions/setup-node@v4 |
100 | 107 | with: |
101 | 108 | 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 |
105 | 109 | # The repository being on D: means that node_modules IO will be fast, but npm still downloads |
106 | 110 | # packages to a temporary folder for caching which is on C: by default. We need to make sure |
107 | 111 | # npm uses the D: drive instead otherwise we still get bottlenecked by C:. |
|
0 commit comments