Skip to content

Commit

Permalink
ci: restore mtime
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Jul 6, 2023
1 parent f3c7a82 commit a22c274
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -71,6 +77,12 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -57,6 +63,12 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2

- name: Checkout ethereum/tests
uses: actions/checkout@v3
Expand Down Expand Up @@ -85,7 +97,14 @@ jobs:
name: rustdoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout sources
uses: actions/checkout@v3
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit a22c274

Please sign in to comment.