use git-restore-mtime-action

This commit is contained in:
Steven Dee (Jōshin) 2025-04-17 14:38:39 -07:00
parent 03e07bfe4b
commit 98a9ee37ad
No known key found for this signature in database

View file

@ -23,6 +23,12 @@ jobs:
mode: ["", tiny, rel, tinylinux, optlinux]
steps:
- uses: actions/checkout@v4
with:
# Full checkout needed for git-restore-mtime-bare.
fetch-depth: 0
# TODO(jart): fork this action.
- uses: chetan/git-restore-mtime-action@v2
- uses: actions/cache@v4
with:
@ -32,8 +38,9 @@ jobs:
- uses: actions/cache@v4
with:
path: o
key: o-${{ matrix.mode }}-${{ env.COSMOCC_VERSION }}
key: o-${{ matrix.mode }}-${{ env.COSMOCC_VERSION }}-${{ github.sha }}
restore-keys: |
o-${{ matrix.mode }}-${{ env.COSMOCC_VERSION }}-
o-${{ matrix.mode }}-
o-