From 98a9ee37addb7de16ae7b4d69109084abdbc0c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Dee=20=28J=C5=8Dshin=29?= Date: Thu, 17 Apr 2025 14:38:39 -0700 Subject: [PATCH] use git-restore-mtime-action --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1618d7998..29b0221f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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-