mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
also update mtimes on src/_cffi_src (#8567)
This commit is contained in:
parent
e09fccc749
commit
0ff4eb208d
1 changed files with 4 additions and 4 deletions
8
.github/actions/mtime-fix/action.yml
vendored
8
.github/actions/mtime-fix/action.yml
vendored
|
|
@ -11,7 +11,7 @@ runs:
|
|||
echo "The git available is probably too old so checkout didn't create a real git clone, skipping mtime fix"
|
||||
exit 0
|
||||
fi
|
||||
ls -Rla src/rust/src
|
||||
ls -Rla src/rust/src src/_cffi_src
|
||||
echo "Verifying commits are monotonic because if they're not caching gets wrecked"
|
||||
COMMIT_ORDER=$(git log --pretty=format:%cd --date=format-local:%Y%m%d%H%M.%S -5)
|
||||
SORTED_COMMIT_ORDER=$(git log --pretty=format:%cd --date=format-local:%Y%m%d%H%M.%S -5 | sort -rn)
|
||||
|
|
@ -19,8 +19,8 @@ runs:
|
|||
echo "Commits are not monotonic, git may have changed how date formatting works"
|
||||
exit 1
|
||||
fi
|
||||
echo "Setting mtimes for rust dirs"
|
||||
for f in $(git ls-files src/rust); do touch -t $(git log --pretty=format:%cd --date=format-local:%Y%m%d%H%M.%S -1 HEAD -- "$f") "$f"; done
|
||||
echo "Setting mtimes for dirs"
|
||||
for f in $(git ls-files src/rust src/_cffi_src); do touch -t $(git log --pretty=format:%cd --date=format-local:%Y%m%d%H%M.%S -1 HEAD -- "$f") "$f"; done
|
||||
echo "Done"
|
||||
ls -Rla src/rust/src
|
||||
ls -Rla src/rust/src src/_cffi_src
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue