Skip to content

Commit 490e2c9

Browse files
authored
Merge pull request #2156 from input-output-hk/jpraynaud/chmod-pre-built-binaries
Feat: add execute rights on pre-built binaries in CI
2 parents 21d56f7 + 0cf9bd9 commit 490e2c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/scripts/package-distribution.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ def build_archive(input_dir, destination_dir, archive_basename):
3030
destination_dir, f"{archive_basename}.tar.gz")
3131
with tarfile.open(archive_name, "x:gz") as archive:
3232
for filename in input_files:
33-
archive.add(os.path.join(input_dir, filename),
34-
arcname=filename)
33+
filepath = os.path.join(input_dir, filename)
34+
os.chmod(filepath, 0o755)
35+
archive.add(filepath, arcname=filename)
3536

3637
print(f"successfully packed mithril distribution into: {archive_name}")
3738
return archive_name

0 commit comments

Comments
 (0)