From e16bee1a279f42592215d47d2c17ba724ba52f41 Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Thu, 6 May 2021 02:46:21 -0400 Subject: [PATCH] [CI] Now tagging the nightly build with the date of the latest commit (#100) (instead of current date) --- .ci/build-wheels.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/build-wheels.yml b/.ci/build-wheels.yml index 414a81fd7..7c56ce186 100644 --- a/.ci/build-wheels.yml +++ b/.ci/build-wheels.yml @@ -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