Skip to content

Commit 0895212

Browse files
committed
Fix upload steps
1 parent 3160f8f commit 0895212

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release-binaries.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ jobs:
128128
- name: Package Build and Source Directories
129129
shell: bash
130130
run: |
131-
tar -c . | zstd -T0 -c > llvm-project.tar.zst
131+
# Dereference symlinks so that this works on Windows.
132+
tar -h -c . | zstd -T0 -c > ../llvm-project.tar.zst
133+
mv ../llvm-project.tar.zst .
132134
tar -C ${{ steps.build.outputs.build-prefix }} -c build/ | zstd -T0 -c > build.tar.zst
133135
134136
- name: Upload Stage 1 Source
@@ -196,7 +198,9 @@ jobs:
196198
- name: Save Build and Source Directories
197199
shell: bash
198200
run: |
199-
tar -c . | zstd -T0 -c > llvm-project.tar.zst
201+
# Dereference symlinks so that this works on Windows.
202+
tar -h -c . | zstd -T0 -c > ../llvm-project.tar.zst
203+
mv ../llvm-project.tar.zst .
200204
tar -C ${{ steps.unpack.outputs.build-prefix }} -c build/ | zstd -T0 -c > build.tar.zst
201205
202206
- name: Upload Stage 2 Source
@@ -300,7 +304,9 @@ jobs:
300304
- name: Save Build and Source Directories
301305
shell: bash
302306
run: |
303-
tar -c . | zstd -T0 -c > llvm-project.tar.zst
307+
# Dereference symlinks so that this works on Windows.
308+
tar -h -c . | zstd -T0 -c > ../llvm-project.tar.zst
309+
mv ../llvm-project.tar.zst .
304310
tar -C ${{ steps.unpack.outputs.build-prefix }} -c build/ | zstd -T0 -c > build.tar.zst
305311
306312
- name: Upload Stage 3 Source

0 commit comments

Comments
 (0)