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