freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

[build] Split `create_dsc` and `create-orig` functions in `util.sh`.

Open s3rj1k opened this issue 1 year ago • 1 comments

This is needed for GHA workflow, adding ability to prep source bundle without actually resetting git history or building source tars and the actual debs.

Function splitting is done in such a way, that it preserves all previous UX from CLI invocation, add add two more functions, so general flow would look like this:

VERSION=$(cat ./build/next-release.txt)
HASH=$(echo ${GITHUB_SHA} | cut -c1-10)
./debian/util.sh prep-create-orig -n -v${VERSION}-${{ env.GITHUB_RUN_NUMBER }}~${HASH}
./debian/util.sh prep-create-dsc ${{ matrix.codename }}
...
# run deb build commands

s3rj1k avatar Feb 15 '24 17:02 s3rj1k

Unit-tests failed: https://public-artifacts.signalwire.cloud/drone/signalwire/freeswitch/1686/artifacts.html

signalwire-ci[bot] avatar Feb 15 '24 18:02 signalwire-ci[bot]