-
Notifications
You must be signed in to change notification settings - Fork 234
Deploy binaries from travis.ci
Alexey Sotkin edited this page Aug 16, 2019
·
1 revision
This workflow allows us to test attached binaries before publishing the release.
- Go to https://travis-ci.org/KhronosGroup/SPIRV-LLVM-Translator
- Choose "More options" -> "Trigger build"
- Pick a branch or commit for the release
- Commit message is irrelevant.
- Insert the following config
- Note: The branch in
deploy.on
must match with the one picked for the build # (previous item) - Note:
TRAVIS_TAG
will be used for the release on github. - Note: This is a draft release. i.e. it is available for KhronosGroup members only.
- Note: The branch in
before_deploy:
- echo ${TRAVIS_COMMIT} > ../install/version.txt;
- export TRAVIS_TAG=v8.0.1-2
- export TARBALL=SPIRV-LLVM-Translator-${TRAVIS_TAG}-${TRAVIS_OS_NAME}-${BUILD_TYPE}.zip;
- cd ../install && find . -print | zip -@ ${TARBALL};
deploy:
provider: releases
api_key: ${repo_token}
on:
branch: llvm_release_80
condition: ${BUILD_EXTERNAL} == 1 && ${SHARED_LIBS} == ON && ${repo_token}
file: ${TARBALL}
skip_cleanup: true
overwrite: false
draft: true
- Click "Trigger custom build" and wait while the first two builds complete.
- Go to https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases. A "Draft" release should be created there by travis.
- Make sure built artifacts are attached.
- Edit the release as needed.
- Set the branch
- Provide meaningful title for the release
- Provide a description / release notes.
- Review the release with the community
- Once we are happy with the draft, publish it.