[CI] Now tagging the nightly build with the date of the latest commit (#100)
(instead of current date)
This commit is contained in:
committed by
Philippe Tillet
parent
6a9810ccf2
commit
e16bee1a27
@@ -18,7 +18,8 @@ jobs:
|
||||
displayName: Install dependencies
|
||||
- bash: |
|
||||
#sed -i 's/name\=\"triton\"/name="triton-nightly"/g' python/setup.py
|
||||
sed -i -r "s/version\=\"(.*)\"/version=\"\1-dev`date '+%Y%m%d'`\"/g" python/setup.py
|
||||
export LATEST_DATE=$(git show -s --format=%ci `git rev-parse HEAD` | cut -d ' ' -f 1 | sed 's/-//g')
|
||||
sed -i -r "s/version\=\"(.*)\"/version=\"\1-dev"$LATEST_DATE"\"/g" python/setup.py
|
||||
echo "" >> python/setup.cfg
|
||||
echo "[build_ext]" >> python/setup.cfg
|
||||
echo "base-dir=/project" >> python/setup.cfg
|
||||
|
Reference in New Issue
Block a user