Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgrindel/gha_set_up_bazel
GitHub Action to configure Bazel cache and settings.
https://github.com/cgrindel/gha_set_up_bazel
Last synced: about 2 months ago
JSON representation
GitHub Action to configure Bazel cache and settings.
- Host: GitHub
- URL: https://github.com/cgrindel/gha_set_up_bazel
- Owner: cgrindel
- License: apache-2.0
- Created: 2022-01-07T18:47:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T18:05:17.000Z (2 months ago)
- Last Synced: 2024-10-25T10:34:55.536Z (2 months ago)
- Language: Starlark
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Set Up Bazel GitHub Action
GitHub Action to configure Bazel cache and settings for a specified configuration (e.g. ci). This
action assumes that a `.bazelrc` file of the Bazel workspace and it contains a directive to load
`local.bazelrc`.```conf
# Try to import a local.rc file; typically, written by CI
try-import %workspace%/local.bazelrc
```## Quickstart
```yaml
name: CI for PR Mergeon:
pull_request:
branches: [ main ]jobs:
ubuntu_ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2- name: Configure Bazel
uses: ./
with:
repo_name: gha_set_up_bazel_ci
bazel_repo_cache_dir: ~/.cache/custom_bazel_repo
bazel_disk_cache_dir: ~/.cache/custom_bazel_disk
workspace_dir: ci
- name: Test the Workspace
shell: bash
run: |
cd ci
bazel test //...
```