2024-03-20 11:40:35 -07:00
|
|
|
name: Setup Bazel environment
|
|
|
|
|
description: Setup a Bazel environment, including Bazelisk and fine-grained caching
|
2023-01-04 16:31:00 -08:00
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
bazelisk-cache:
|
|
|
|
|
description: Caches Bazelisk downloads based on .bazelversion
|
|
|
|
|
required: false
|
2024-02-07 05:55:42 -08:00
|
|
|
default: "false"
|
|
|
|
|
bazelisk-version:
|
|
|
|
|
description: The Bazelisk version to download and use if necessary
|
|
|
|
|
default: ""
|
2023-01-04 16:31:00 -08:00
|
|
|
bazelrc:
|
|
|
|
|
description: Extra contents to write to user .bazelrc
|
|
|
|
|
required: false
|
|
|
|
|
default: ""
|
|
|
|
|
cache-version:
|
|
|
|
|
description: Version of all caches
|
|
|
|
|
required: false
|
2024-02-07 05:55:42 -08:00
|
|
|
default: "1"
|
2023-01-04 16:31:00 -08:00
|
|
|
disk-cache:
|
|
|
|
|
description: Cache actions outputs based on BUILD
|
|
|
|
|
required: false
|
2024-02-07 05:55:42 -08:00
|
|
|
default: "false"
|
2023-01-04 16:31:00 -08:00
|
|
|
external-cache:
|
2024-02-26 10:58:05 -08:00
|
|
|
description: Cache external 10MB+ repositories based on MODULE.bazel/WORKSPACE
|
2023-01-04 16:31:00 -08:00
|
|
|
required: false
|
|
|
|
|
default: ""
|
|
|
|
|
google-credentials:
|
|
|
|
|
description: Google Cloud account key for remote cache
|
|
|
|
|
required: false
|
|
|
|
|
default: ""
|
|
|
|
|
repository-cache:
|
2024-02-26 10:58:05 -08:00
|
|
|
description: Cache repositories based on MODULE.bazel/WORKSPACE
|
2023-01-04 16:31:00 -08:00
|
|
|
required: false
|
2024-02-07 05:55:42 -08:00
|
|
|
default: "false"
|
|
|
|
|
token:
|
|
|
|
|
description: GitHub token to query Bazelisk releases
|
|
|
|
|
required: false
|
|
|
|
|
default: ${{ github.token }}
|
2023-01-04 16:31:00 -08:00
|
|
|
|
|
|
|
|
runs:
|
2024-02-13 06:22:58 -08:00
|
|
|
using: node20
|
2023-01-04 16:31:00 -08:00
|
|
|
main: dist/main/index.js
|
|
|
|
|
post: dist/post/index.js
|