Skip to content

Commit 04f7ea8

Browse files
Flatten binaries in Linux asset tarball and include default library contents (#178)
1 parent 8ce6ea0 commit 04f7ea8

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/create-release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,20 @@ jobs:
336336
- name: Create Tar.GZ of Linux Asset
337337
working-directory: ${{github.workspace}}/__build
338338
shell: sh
339-
run: tar -czvhf ../tsc.tar.gz ./tsc/ninja/release/bin/tsc ./tsc/ninja/release/lib/libTypeScriptRuntime.so ./gc/ninja/release/libgc.a ./tsc/ninja/release/lib/libTypeScriptAsyncRuntime.a ../3rdParty/llvm/release/bin/wasm-ld ../3rdParty/llvm/release/lib/libLLVMSupport.a ../3rdParty/llvm/release/lib/libLLVMDemangle.a -C ../TypeScriptCompilerDefaultLib/__build/release .
339+
# Match the Windows zip layout: flatten all binaries into the archive
340+
# root, then add the default library release contents at the root too.
341+
run: |
342+
rm -rf ./__stage
343+
mkdir -p ./__stage
344+
cp ./tsc/ninja/release/bin/tsc ./__stage/
345+
cp ./tsc/ninja/release/lib/libTypeScriptRuntime.so ./__stage/
346+
cp ./gc/ninja/release/libgc.a ./__stage/
347+
cp ./tsc/ninja/release/lib/libTypeScriptAsyncRuntime.a ./__stage/
348+
cp ../3rdParty/llvm/release/bin/wasm-ld ./__stage/
349+
cp ../3rdParty/llvm/release/lib/libLLVMSupport.a ./__stage/
350+
cp ../3rdParty/llvm/release/lib/libLLVMDemangle.a ./__stage/
351+
cp -r ../TypeScriptCompilerDefaultLib/__build/release/. ./__stage/
352+
tar -czvhf ../tsc.tar.gz -C ./__stage .
340353
341354
- name: Archive Tar.GZ of Linux Asset
342355
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)