Skip to content

Commit

Permalink
Revert "Remove bazel cache"
Browse files Browse the repository at this point in the history
This reverts commit acf9de6.
  • Loading branch information
burkedavison committed Jan 4, 2023
1 parent acf9de6 commit 9275fea
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ jobs:
mvn install --batch-mode --no-transfer-progress -Dcheckstyle.skip \
-Dfmt.skip
- run: bazelisk version
- name: Bazel File Cache Setup
id: cache-bazel
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }}
restore-keys: ${{ runner.os }}-
- name: Bazel Cache Not Found
if: steps.cache-bazel.outputs.cache-hit != 'true'
run: |
echo "No cache found."
- name: Bazel Cache Found
if: steps.cache-bazel.outputs.cache-hit == 'true'
run: |
echo -n "Cache found. Cache size: "
du -sh ~/.cache/bazel
echo "If the cache seems broken, update the root WORKSPACE file with a trivial change."
echo "The old cache will disappear after 7 days."
- name: Integration Tests
run: |
bazel --batch test //test/integration/...
Expand Down Expand Up @@ -115,6 +134,24 @@ jobs:
mvn -B -ntp install --projects 'gapic-generator-java' \
-Dcheckstyle.skip -Dfmt.skip
- run: bazelisk version
- name: Bazel File Cache Setup
id: cache-bazel
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }}
restore-keys: ${{ runner.os }}
- name: Bazel Cache Not Found
if: steps.cache-bazel.outputs.cache-hit != 'true'
run: |
echo "No cache found."
- name: Bazel Cache Found
if: steps.cache-bazel.outputs.cache-hit == 'true'
run: |
echo -n "Cache found. Cache size: "
du -sh ~/.cache/bazel
echo "If the cache seems broken, update the root WORKSPACE file with a trivial change."
echo "The old cache will disappear after 7 days."
- name: Integration Tests
run: |
bazelisk --batch test //test/integration/...
Expand Down Expand Up @@ -164,6 +201,25 @@ jobs:
java-version: ${{ matrix.java }}
distribution: temurin
- run: java -version

# - name: Bazel File Cache Setup
# uses: actions/cache@v3
# with:
# path: ~/.cache/bazel
# key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }}
# restore-keys: ${{ runner.os }}-
# - name: Bazel Cache Not Found
# if: steps.cache-bazel.outputs.cache-hit != 'true'
# run: |
# echo "No cache found."
# - name: Bazel Cache Found
# if: steps.cache-bazel.outputs.cache-hit == 'true'
# run: |
# echo -n "Cache found. Cache size: "
# du -sh ~/.cache/bazel
# echo "If the cache seems broken, update the root WORKSPACE file with a trivial change."
# echo "The old cache will disappear after 7 days."

- name: Install maven modules
run: |
mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip
Expand Down

0 comments on commit 9275fea

Please sign in to comment.