From 4e6761cc40bee214a2cfc0687e8e0d0d12926041 Mon Sep 17 00:00:00 2001 From: Sokwhan Huh Date: Wed, 18 Dec 2024 16:00:47 -0800 Subject: [PATCH] Use ubuntu-latest again for CI PiperOrigin-RevId: 707695265 --- .github/workflows/workflow.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index adf150e7..35fe749f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -16,19 +16,23 @@ concurrency: jobs: Bazel-Tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest timeout-minutes: 30 steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 Job is running on a ${{ runner.os }} server!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code - uses: actions/checkout@v3 - - name: Mount Bazel Cache - uses: actions/cache@v3 + uses: actions/checkout@v4 + - name: Setup Bazel + uses: bazel-contrib/setup-bazel@0.9.1 with: - path: "/home/runner/.cache/bazel" - key: bazelisk + # Avoid downloading Bazel every time. + bazelisk-cache: true + # Store build cache per workflow. + disk-cache: ${{ github.workflow }} + # Share repository cache between workflows. + repository-cache: true - name: Bazel Output Version run: bazelisk --version - name: Bazel Test