blob: c8c4816a444c71d6a080121bfe8a25a4a68dd14a [file] [edit]
name: GitHub Cache
on:
push:
branches: [trunk]
# Keep in sync with the repository-cache key files in bazel.yml.
paths:
- 'MODULE.bazel'
- 'multitool.lock.json'
- 'pnpm-lock.yaml'
- 'rust/Cargo.lock'
- 'java/maven_install.json'
- 'py/requirements_lock.txt'
- 'rb/Gemfile.lock'
- 'dotnet/paket.lock'
- 'common/selenium_manager.bzl'
schedule:
- cron: '30 6 * * *'
workflow_dispatch:
concurrency:
group: gh-cache-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
populate:
name: Populate Cache
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
uses: ./.github/workflows/bazel.yml
with:
name: ${{ matrix.os }}
os: ${{ matrix.os }}
cache-save: true
# Cache Selenium Manager binaries but not the pinned browser/driver binaries
run: >-
bazel build --nobuild --build_tests_only --keep_going --pin_browsers=false
//java/test/... //py:* //rb/spec/... //rust/tests/...
//javascript/selenium-webdriver:* //dotnet/test/... &&
bazel fetch --repo=@download_sm_linux_x86_64 --repo=@download_sm_linux_arm64
--repo=@download_sm_macos --repo=@download_sm_windows