Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
932d28f
Restore Linux build and revert to deploy from master.
MarkCallow Apr 23, 2022
5564c7f
Fix: cleanup to skip_cleanup for dpl v1.
MarkCallow Apr 30, 2022
dce25bc
Reformat some comments.
MarkCallow Apr 30, 2022
7cdf4a1
Change -n to --netrc for clarity.
MarkCallow Apr 30, 2022
d1b6627
Update for v4.1.0-rc1
MarkCallow Apr 30, 2022
9df5292
Update GitHub token for deployment. Comment non-deploy configs.
MarkCallow May 1, 2022
a757c71
Fix missing $ and comment non-deploy configs.
MarkCallow May 1, 2022
b54d3ef
Renable wasm release build.
MarkCallow May 1, 2022
7ea7d77
Try dpl v2.
MarkCallow May 1, 2022
6db2b57
Try explicitly specifying release name.
MarkCallow May 1, 2022
d3402b2
Try overwrite: true.
MarkCallow May 1, 2022
fa5f1be
Revert to dpl v1. Try setting body to $RELNOTES again.
MarkCallow May 1, 2022
6cc27f6
Create RELNOTES for all deploys.
MarkCallow May 1, 2022
81fd21f
Try release_notes in dplv1.
MarkCallow May 1, 2022
12a4dd6
Try defining body as a multi-line tag.
MarkCallow May 2, 2022
ffd6aa0
Convert \n to <br /> to workaround option parsing issue.
MarkCallow May 2, 2022
169ddbb
Dump RELNOTES for debug.
MarkCallow May 2, 2022
9bd1bd0
Try overwrite: true.
MarkCallow May 2, 2022
67fb35c
Improve formatting.
MarkCallow May 4, 2022
a7e676d
Escape double-quotes & backslashes and convert newlines to "\n".
MarkCallow May 4, 2022
4e81875
Comment out dpl v2 code.
MarkCallow May 4, 2022
b137282
Try a simple test of writing the body.
MarkCallow May 4, 2022
78972f7
Try calling tag release_notes.
MarkCallow May 4, 2022
c44a9da
Revert to body:. Remove pages deploy. Do only 1 build.
MarkCallow May 5, 2022
1abf1ba
Explicitly set release name.
MarkCallow May 5, 2022
bdb842a
Restore pages deploy.
MarkCallow May 5, 2022
3bc833c
Remove unneeded backslash.
MarkCallow May 5, 2022
bc325c6
Try the full relnotes.
MarkCallow May 5, 2022
cc9d824
Try \<newline> instead of "\n".
MarkCallow May 5, 2022
1163dff
Try @Q expansion.
MarkCallow May 5, 2022
74919b9
Use <br /> for newlines.
MarkCallow May 5, 2022
7857ec8
Revert to "\n".
MarkCallow May 5, 2022
c7d72e6
Always deploy, for easier testing. Revert to simple string.
MarkCallow May 5, 2022
4c7dec4
Set allowed branch for Travis. No tag for Appveyor.
MarkCallow May 5, 2022
ac1716f
We need to use a tagged commit.
MarkCallow May 5, 2022
8ca8681
Revert back to pages deploy commented out.
MarkCallow May 5, 2022
6a58cfc
Try full relnotes again.
MarkCallow May 5, 2022
9b19172
Remove unneeded backslash again.
MarkCallow May 5, 2022
5987f07
Try <br /> again.
MarkCallow May 5, 2022
0f24e25
Try \\n in the output.
MarkCallow May 5, 2022
def0880
Give up on releases provider and roll our own.
MarkCallow May 6, 2022
ecc7ca5
Finishing commenting dpl v2 releases code.
MarkCallow May 6, 2022
07108b1
Install octokit. Fix errors in .rb script.
MarkCallow May 6, 2022
aa7f7af
Use releases to deply the assets and custom script for relnotes.
MarkCallow May 6, 2022
ef5a645
Insert missing -.
MarkCallow May 6, 2022
4fac831
Specify irelease name for assets provider. Add debug to script.
MarkCallow May 6, 2022
8ecc6ee
Dump some more info.
MarkCallow May 6, 2022
af6df02
Comment out custom provider to see what happens.
MarkCallow May 6, 2022
8c0a62a
Revert solely to script which can now install assets.
MarkCallow May 6, 2022
945a10c
Uncomment RELNOTES awk.
MarkCallow May 6, 2022
e4bf9ec
Use ${var:Q}. Improve comments.
MarkCallow May 6, 2022
fbdcd96
Try using mime-types gem to guess content-type.
MarkCallow May 6, 2022
487e033
Use dpl v1 to uplaod assets.
MarkCallow May 6, 2022
fdf804a
Add skip_cleanup.
MarkCallow May 7, 2022
c0286d5
Comment releases, uncomment script.
MarkCallow May 7, 2022
02f1fbe
Dump rel_desc file.
MarkCallow May 7, 2022
7e78e0e
Add more debugging.
MarkCallow May 7, 2022
de1ba9e
Move rel_desc.md to build. When updating a release take all but body …
MarkCallow May 7, 2022
2219ffa
Fix error in release script. Set skip_cleanup in .travis.yml.
MarkCallow May 7, 2022
e51981e
Fix another error in release script.
MarkCallow May 7, 2022
c23954d
Remove errant pipe.
MarkCallow May 7, 2022
eb9610b
Add needed backslash.
MarkCallow May 7, 2022
0be4fe0
Renable releases. Remove some debugging from script.
MarkCallow May 7, 2022
a877c6e
Reenable docs and macOS builds & deployments.
MarkCallow May 7, 2022
e27f671
Fix some incorrect info.
MarkCallow May 9, 2022
5b24dcd
Tweak comments.
MarkCallow May 9, 2022
1a7016d
Reenable WASM package build.
MarkCallow May 9, 2022
9067fe9
Remove newlines in paragraphs as GitHub markdown converts them to <br>.
MarkCallow May 9, 2022
88dbbe7
Restore all build configurations.
MarkCallow May 9, 2022
f696d9a
Expose the ktxStream documentation.
MarkCallow May 10, 2022
ebe066d
Add additional new features.
MarkCallow May 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ deploy:
# Deploy to GitHub Releases
provider: GitHub
auth_token:
secure: ZEoxs4bA/iVAEfPdQOVDq0fyKA6eyecgyvQ0/1kMu6ic2+H6Aua6kPk2hNvWG4tM
secure: ts/Kjg56NnVMgXsM2J/4jXA3W9kIA58rg4B32uRuJDqyNRmkAGWlCXP9Zbp29Uip
# Don't set so tag name will be used as release name.
#release:
# Can't get this to work using artifact.path so use artifact.name set above.
artifact: WindowsInstaller,WindowsInstallerSha1
draft: true
#prerelease: true
prerelease: true
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
Expand Down
91 changes: 67 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
- FEATURE_TESTS: ON
- GIT_LFS_SKIP_SMUDGE: 1
- PACKAGE: NO
- REL_DESC_FILE: "$BUILD_DIR/rel_desc.md"
- VULKAN_SDK_VER: "1.2.176.1"
# This is just to tell the Vulkan install script where to install.
- VULKAN_INSTALL_DIR: "$HOME/VulkanSDK/$VULKAN_SDK_VER"
Expand All @@ -45,7 +46,7 @@ env:
SUPPORT_SSE=ON SUPPORT_OPENCL=OFF
- CONFIGURATION=Release PLATFORM=macOS ARCHS=x86_64
FEATURE_DOC=ON FEATURE_JNI=ON FEATURE_LOADTESTS=ON FEATURE_TOOLS=ON
SUPPORT_SSE=ON SUPPORT_OPENCL=OFF PACKAGE=YES
SUPPORT_SSE=ON SUPPORT_OPENCL=OFF DEPLOY_DOCS=YES PACKAGE=YES
- CONFIGURATION=Release PLATFORM=macOS ARCHS=arm64
FEATURE_DOC=ON FEATURE_JNI=ON FEATURE_LOADTESTS=ON FEATURE_TESTS=OFF
FEATURE_TOOLS=ON SUPPORT_SSE=ON SUPPORT_OPENCL=OFF PACKAGE=YES
Expand Down Expand Up @@ -251,6 +252,7 @@ after_success:

before_deploy:
- |
gem install octokit mime-types
case "${TRAVIS_OS_NAME:-linux}" in
linux)
;;
Expand All @@ -266,48 +268,89 @@ before_deploy:
if [ -n "$MACOS_CERTIFICATES_P12" -a -n "$TRAVIS_TAG" -a -z "$NOTARIZED" ]; then
./ci_scripts/notarize.sh $BUILD_DIR/KTX-Software-*.pkg $APPLE_ID $DEVELOPMENT_TEAM $ALTOOL_PASSWORD; export NOTARIZED="true"
fi
if [ -z "$RELNOTES" -a -f RELEASE_NOTES.md ]; then
# Copy RELEASE_NOTES into an env. var. so we can remove lines that are
# unnecessary in the context of a GitHub release description.
RELNOTES=$(cat RELEASE_NOTES.md | awk '/^Release Notes/,/^## Version/ { next }
! /<!-- Copyright/ && ! /<!-- SPDX/ { print }')
fi
;;
esac
if [ ! -f $REL_DESC_FILE -a -f RELEASE_NOTES.md ]; then
# Remove lines that are unnecessary in the context of a GitHub
# release description.
awk '/^Release Notes/,/^## Version/ { next }
! /<!-- Copyright/ && ! /<!-- SPDX/ { print }' RELEASE_NOTES.md \
> $REL_DESC_FILE
# dpl v2 alternative
#RELNOTES=$(awk '/^Release Notes/,/^## Version/ { next }
# ! /<!-- Copyright/ && ! /<!-- SPDX/ { print }' RELEASE_NOTES.md)
fi

deploy:
- provider: pages
#edge: true # Use bleeding edge (dplv2)
cleanup: false
edge: true # Use bleeding edge (dplv2)
token: $GITHUB_TOKEN # Set in the repo settings page as a secure variable
local_dir: $BUILD_DIR/docs/html
on:
#branch: master
tags: true
condition: $TRAVIS_OS_NAME = osx && ARCHS = x86_64 && PACKAGE = YES
condition: $DEPLOY_DOCS = YES

# ----------------------- dpl v2 -------------------------
# dpl v2 releases provider is broken. Same named but different releases
# are created each time a job in the build triggers this deploy. This
# may be because draft is true and the GitHub API returns 404 when
# querying a draft release by name (you can only query by id) causing
# it to use create_release every time instead of update_release. Some
# of these releases are called "Draft". To avoid this name is specified
# here. See https://github.com/travis-ci/dpl/issues/1213.
# - provider: releases
# edge: true
# token: $GITHUB_TOKEN # Set in the repo settings page as a secure variable
# name: $TRAVIS_TAG
# file_glob: true
# file:
# - $BUILD_DIR/KTX-Software-*-*
# release_notes_file: REL_DESC_FILE.md
# #release_notes: $RELNOTES
# draft: true
# prerelease: true
# on:
# tags: true
# #branch: master
# condition: $PACKAGE = YES
# ----------------------- dpl v1 -------------------------
- provider: releases
# dpl v2 is broken. Same named but different releases are created for this
# and the deploy below. Happens even when neither of release_notes or
# release_notes_file is specified.
#edge: true # Use bleeding edge (dplv2)
token: $GITHUB_TOKEN # Set in the repo settings page as a secure variable
name: $TRAVIS_TAG
skip_cleanup: true
# We can't use
#body: $RELNOTES
# because a bug in v1's backing Ruby code does not allow passing it
# command line option arguments that contain newlines leading to an
# error on Travis when we try.
# See https://github.com/travis-ci/dpl/issues/155.
#
# The obvious workarounds of literal "\n" or "<br />" do not work.
# The text is passed to GitHub but "\n" is shown literally. While "<br />"
# causes a newline in the rendering, the markdown interpreter does not
# recognize it as an actual newline so never changes the format from
# the initial heading format.
#
# Since we can't use either this or v2 to deply the release notes, we've
# rolled our own provider script for the body.
file_glob: true
file:
- $BUILD_DIR/KTX-Software-*-*
# This goes to the release description so covers all versions.
# These are dpl v2 parameters.
#release_notes_file: RELEASE_NOTES.md
#release_notes: $RELNOTES
# dpl v1. Sadly this doesn't work. See https://github.com/travis-ci/dpl/issues/155.
# body: $RELNOTES
# Do release note deployment manually for now.
cleanup: false
draft: true
#prerelease: true
prerelease: true
on:
tags: true
#branch: master
condition: $PACKAGE = YES

- provider: script
edge: true
script: ruby ci_scripts/github_release.rb -s ${GITHUB_TOKEN} -r ${TRAVIS_REPO_SLUG} -c $REL_DESC_FILE -t ${TRAVIS_TAG} --draft true --prerelease true
on:
tags: true
#branch: master
condition: PACKAGE = YES
condition: $PACKAGE = YES
# ---------------------------------------------------------

# vim:ai:ts=4:sts=2:sw=2:expandtab
Loading