Skip to content

Commit a320893

Browse files
committed
[install] in .github/workflows/archiver, create a tar.gz archive instead of a zip archive
(zip does not preserve file permissions; tgz is difficult to manipulate on Windows while tar.gz is easier)
1 parent e5eaa66 commit a320893

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/archiver.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ for file in $(git ls-tree --name-only HEAD -r); do
2020
cp -dp ${file} ${outdir}/${file} # preserve symlinks for AUTHORS, COPYING, COPYING.LESSER and COPYRIGHT
2121
done
2222

23-
# Create the zip archive
24-
outzip=cudacpp.zip
23+
# Create the tgz archive
24+
outtgz=cudacpp.tar.gz
2525
cd ${tmpdir}
26-
zip -qr ${outzip} CUDACPP_OUTPUT
27-
mv ${outzip} ${topdir}
28-
echo "Archive available on ${topdir}/${outzip}"
26+
tar -czf ${outtgz} CUDACPP_OUTPUT
27+
mv ${outtgz} ${topdir}
28+
echo "Archive available on ${topdir}/${outtgz}"

.github/workflows/archiver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
uses: softprops/action-gh-release@v2
2323
if: startsWith(github.ref, 'refs/tags/')
2424
with:
25-
files: cudacpp.zip
25+
files: cudacpp.tar.gz
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)