[CI] Now tagging the nightly build with the date of the latest commit (#100)

(instead of current date)
This commit is contained in:
Philippe Tillet
2021-05-06 02:46:21 -04:00
committed by Philippe Tillet
parent 6a9810ccf2
commit e16bee1a27

View File

@@ -18,7 +18,8 @@ jobs:
displayName: Install dependencies displayName: Install dependencies
- bash: | - bash: |
#sed -i 's/name\=\"triton\"/name="triton-nightly"/g' python/setup.py #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 "" >> python/setup.cfg
echo "[build_ext]" >> python/setup.cfg echo "[build_ext]" >> python/setup.cfg
echo "base-dir=/project" >> python/setup.cfg echo "base-dir=/project" >> python/setup.cfg