Skip to content

Commit 98459ba

Browse files
authored
Merge pull request shader-slang#1381 from csyonghe/master
Generate .tar.gz file in linux release
2 parents 78696a6 + 00e0e25 commit 98459ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ before_deploy: |
4646
export SLANG_ARCH_NAME=`uname -p`
4747
export SLANG_TAG=${TRAVIS_TAG#v}
4848
export SLANG_BINARY_ARCHIVE=slang-${SLANG_TAG}-${SLANG_OS_NAME}-${SLANG_ARCH_NAME}.zip
49+
export SLANG_BINARY_ARCHIVE_TAR=slang-${SLANG_TAG}-${SLANG_OS_NAME}-${SLANG_ARCH_NAME}.tar.gz
4950
zip -r ${SLANG_BINARY_ARCHIVE} bin/*/*/slangc bin/*/*/libslang.so bin/*/*/libslang-glslang.so docs/*.md README.md LICENSE slang.h slang-com-helper.h slang-com-ptr.h slang-tag-version.h prelude/*.h
51+
tar -czf ${SLANG_BINARY_ARCHIVE_TAR} bin/*/*/slangc bin/*/*/libslang.so bin/*/*/libslang-glslang.so docs/*.md README.md LICENSE slang.h slang-com-helper.h slang-com-ptr.h slang-tag-version.h prelude/*.h
5052
5153
# We are going to deploy to GitHub Releases
5254
# on a successful build from a tag, but only
@@ -55,7 +57,9 @@ before_deploy: |
5557
deploy:
5658
provider: releases
5759
api_key: "$GITHUB_RELEASE_TOKEN"
58-
file: "$SLANG_BINARY_ARCHIVE"
60+
file:
61+
- "$SLANG_BINARY_ARCHIVE"
62+
- "$SLANG_BINARY_ARCHIVE_TAR"
5963
skip_cleanup: true
6064
on:
6165
condition: "$SLANG_DEPLOY = true"

0 commit comments

Comments
 (0)