diff --git a/.github/actions/docker/action.yaml b/.github/actions/docker/action.yaml index 7dd5568d3518..bf68a32bd823 100644 --- a/.github/actions/docker/action.yaml +++ b/.github/actions/docker/action.yaml @@ -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: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b37411cf63f5..b27ac6476b4d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d521ed65099f..d8ab4ed022be 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 @@ -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. @@ -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. @@ -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: @@ -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: