Skip to content

Commit 73c322e

Browse files
committed
Try achieve repro on MacOS
1 parent 55effa8 commit 73c322e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/package_code.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ jobs:
100100
101101
- name: Upload reproducibility results
102102
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # 4.4.3
103-
if: ${{ always() }}
104-
#if: ${{ failure() && steps.check.conclusion == 'failure' }}
103+
if: ${{ failure() && steps.check.conclusion == 'failure' }}
105104
with:
106105
name: apache-log4cxx-reproducibility-${{ matrix.os }}
107106
path: |

package.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ cp -r \
5151
"$build/$OUTPUT_DIR"
5252
rm -r "$build/$OUTPUT_DIR"/src/main/abi-symbols
5353

54+
# Fix last-modified time
55+
find "$build/$OUTPUT_DIR" -exec touch --date="$OUTPUT_TIMESTAMP" -m {} +
56+
5457
# Create TAR file
5558
#
5659
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
@@ -66,8 +69,7 @@ fi
6669

6770
(
6871
cd "$build"
69-
tar --mtime="$OUTPUT_TIMESTAMP" \
70-
--owner=0 --group=0 --numeric-owner \
72+
tar --owner=0 --group=0 --numeric-owner \
7173
--sort=name \
7274
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
7375
--create --gzip --file "$TAR_ARCHIVE" "$OUTPUT_DIR"
@@ -86,7 +88,6 @@ if [ -f "$ZIP_ARCHIVE" ]; then
8688
exit 1
8789
fi
8890

89-
find "$build/$OUTPUT_DIR" -exec touch --date="$OUTPUT_TIMESTAMP" -m {} +
9091
# Sort files and zip.
9192
(
9293
cd "$build"

0 commit comments

Comments
 (0)