Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache .git folder #4753

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actions/docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ inputs:
runs:
using: "composite"
steps:
- name: Cache .git
uses: actions/cache@v3
with:
path: .git
key: git-folder
- name: Checkout files
uses: actions/checkout@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
sudo apt update
sudo apt install python3 gn pipx
pipx install pre-commit
- name: Cache .git
uses: actions/cache@v3
with:
path: .git
key: git-folder
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
)
timeout-minutes: 10
steps:
- name: Cache .git
uses: actions/cache@v3
with:
path: .git
key: git-folder
- name: Checkout
uses: actions/checkout@v4
- name: Remove runtest if exists
Expand Down Expand Up @@ -110,6 +115,11 @@ jobs:
needs: [initialize]
runs-on: [self-hosted, chrobalt-linux-runner]
steps:
- name: Cache .git
uses: actions/cache@v3
with:
path: .git
key: git-folder
- name: Checkout
uses: actions/checkout@v4
# Handle GitHub registry used for everything other than pull requests off forked repos.
Expand Down Expand Up @@ -165,6 +175,11 @@ jobs:
# filesystem, whereas /__w which contains Cobalt source code is on tmpfs.
TMPDIR: /__w/_temp
steps:
- name: Cache .git
uses: actions/cache@v3
with:
path: src/.git
key: git-folder
- name: Checkout
uses: actions/checkout@v4
# TODO(bug?): android debug builds are broken.
Expand Down Expand Up @@ -203,6 +218,11 @@ jobs:
TEST_ARTIFACTS_KEY: ${{ matrix.platform }}_${{ matrix.name }}_test_artifacts
TEST_RESULTS_KEY: ${{ matrix.platform }}_${{ matrix.name }}_test_results
steps:
- name: Cache .git
uses: actions/cache@v3
with:
path: src/.git
key: git-folder
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -238,6 +258,11 @@ jobs:
TEST_ARTIFACTS_KEY: ${{ matrix.platform }}_${{ matrix.name }}_test_artifacts
TEST_RESULTS_KEY: ${{ matrix.platform }}_${{ matrix.name }}_test_results
steps:
- name: Cache .git
uses: actions/cache@v3
with:
path: src/.git
key: git-folder
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
Loading