Skip to content

Commit ef8a22a

Browse files
committed
Fix uploaded archives
1 parent 9ef7d73 commit ef8a22a

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/package_code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
name: apache-log4cxx
5555
path: |
56-
CMakeFiles/apache-log4cxx-*
56+
CMakeFiles/dist/*
5757
5858
verify-reproducibility:
5959
name: Verify reproducibility
@@ -106,4 +106,4 @@ jobs:
106106
with:
107107
name: apache-log4cxx-reproducibility-${{ matrix.os }}
108108
path: |
109-
CMakeFiles/apache-log4cxx-*
109+
CMakeFiles/dist/*

package.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ if ! echo "$OUTPUT_TIMESTAMP" | grep -Pq '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
1616
exit 1
1717
fi
1818

19-
# Build directory
19+
# Build directory containing temporary files
20+
#
2021
build=CMakeFiles
2122

23+
# Directory containing the distribution archives
24+
#
25+
dist="$build/dist"
26+
2227
# Create source directory
2328
mkdir -p "$build"
2429
OUTPUT_DIR="$build/apache-log4cxx-$VERSION"
@@ -51,7 +56,7 @@ rm -r "$OUTPUT_DIR"/src/main/abi-symbols
5156
# Create TAR file
5257
#
5358
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
54-
TAR_ARCHIVE="$build/apache-log4cxx-$VERSION.tar.gz"
59+
TAR_ARCHIVE="$dist/apache-log4cxx-$VERSION.tar.gz"
5560
echo 'Tar version:'
5661
tar --version | sed -e 's/^/\t/'
5762
echo 'Gzip version:'
@@ -74,7 +79,7 @@ echo -e Tar archive: "$TAR_ARCHIVE"
7479
#
7580
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
7681
# Change the mtime of all files
77-
ZIP_ARCHIVE="$build/apache-log4cxx-$VERSION.zip"
82+
ZIP_ARCHIVE="$dist/apache-log4cxx-$VERSION.zip"
7883
echo 'Zip version:'
7984
zip --version | sed 's/^/\t/'
8085
if [ -f "$ZIP_ARCHIVE" ]; then
@@ -88,14 +93,14 @@ find "$OUTPUT_DIR" -exec touch --date="$OUTPUT_TIMESTAMP" -m {} +
8893
cd "$build"
8994
find apache-log4cxx-$VERSION -print0 |
9095
LC_ALL=C sort -z |
91-
xargs -0 zip -q -X apache-log4cxx-$VERSION.zip
96+
xargs -0 zip -q -X dist/apache-log4cxx-$VERSION.zip
9297
)
9398

9499
echo -e ZIP archive: "$ZIP_ARCHIVE"
95100

96101
# Generate hashes
97102
(
98-
cd "$build"
103+
cd "$dist"
99104
for format in tar.gz zip; do
100105
sha256sum apache-log4cxx-$VERSION.$format > apache-log4cxx-$VERSION.$format.sha256
101106
sha512sum apache-log4cxx-$VERSION.$format > apache-log4cxx-$VERSION.$format.sha512

0 commit comments

Comments
 (0)