Skip to content

Commit 20c9c17

Browse files
authored
bazel: Use xz for release artefacts (#2674)
Signed-off-by: Ryan Northey <[email protected]>
1 parent a9f73e0 commit 20c9c17

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/sanitizer-libs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/upload-artifact@v4
5252
with:
5353
name: ${{ matrix.sanitizer }}-libs-x86_64
54-
path: bazel/bazel-bin/compile/${{ matrix.sanitizer }}-libs-x86_64.tar.gz
54+
path: bazel/bazel-bin/compile/${{ matrix.sanitizer }}-libs-x86_64.tar.xz
5555
retention-days: 30
5656

5757
publish:
@@ -76,9 +76,9 @@ jobs:
7676
for artifact in artifacts/*; do
7777
[[ ! -d "$artifact" ]] && continue
7878
name=$(basename "$artifact")
79-
file=$(ls "$artifact"/*.tar.gz)
80-
echo "Uploading $file as $name.tar.gz"
79+
file=$(ls "$artifact"/*.tar.xz)
80+
echo "Uploading $file as $name.tar.xz"
8181
gh release upload "${{ github.event.release.tag_name }}" \
82-
"$file#$name.tar.gz" \
82+
"$file#$name.tar.xz" \
8383
--clobber
8484
done

.github/workflows/sysroot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ jobs:
6161
sudo rm -rf sysroot-${{ matrix.arch }}/etc/apt/sources.list.d/*
6262
- name: Package sysroot
6363
run: |
64-
sudo tar -czf sysroot-${{ matrix.arch }}.tar.gz -C sysroot-${{ matrix.arch }} .
64+
sudo tar -cJf sysroot-${{ matrix.arch }}.tar.xz -C sysroot-${{ matrix.arch }} .
6565
- name: Upload ${{ matrix.arch }} sysroot
6666
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6767
with:
6868
name: sysroot-${{ matrix.arch }}
69-
path: sysroot-${{ matrix.arch }}.tar.gz
69+
path: sysroot-${{ matrix.arch }}.tar.xz
7070
retention-days: 30
7171

7272
publish:
@@ -89,9 +89,9 @@ jobs:
8989
for artifact in artifacts/*; do
9090
[[ ! -d "$artifact" ]] && continue
9191
name=$(basename "$artifact")
92-
file=$(ls "$artifact"/*.tar.gz)
93-
echo "Uploading $file as $name.tar.gz"
92+
file=$(ls "$artifact"/*.tar.xz)
93+
echo "Uploading $file as $name.tar.xz"
9494
gh release upload "${{ github.event.release.tag_name }}" \
95-
"$file#$name.tar.gz" \
95+
"$file#$name.tar.xz" \
9696
--clobber
9797
done

bazel/compile/BUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,31 @@ cmake(
6262
genrule(
6363
name = "cxx_msan",
6464
srcs = [":libcxx_msan"],
65-
outs = ["msan-libs-x86_64.tar.gz"],
65+
outs = ["msan-libs-x86_64.tar.xz"],
6666
cmd = """
6767
mkdir -p msan-libs-x86_64/lib
6868
for f in $(locations :libcxx_msan); do
6969
if [[ $$f == *.a ]]; then
7070
cp $$f msan-libs-x86_64/lib/
7171
fi
7272
done
73-
tar czf $@ msan-libs-x86_64
73+
tar cJf $@ msan-libs-x86_64
7474
""",
7575
tags = ["manual"],
7676
)
7777

7878
genrule(
7979
name = "cxx_tsan",
8080
srcs = [":libcxx_tsan"],
81-
outs = ["tsan-libs-x86_64.tar.gz"],
81+
outs = ["tsan-libs-x86_64.tar.xz"],
8282
cmd = """
8383
mkdir -p tsan-libs-x86_64/lib
8484
for f in $(locations :libcxx_tsan); do
8585
if [[ $$f == *.a ]]; then
8686
cp $$f tsan-libs-x86_64/lib/
8787
fi
8888
done
89-
tar czf $@ tsan-libs-x86_64
89+
tar cJf $@ tsan-libs-x86_64
9090
""",
9191
tags = ["manual"],
9292
)

0 commit comments

Comments
 (0)