mirror of
https://github.com/tailscale/tailscale.git
synced 2026-02-12 00:41:57 -05:00
If local tailscale/tailscale checkout is not available, pulll cigocacher remotely. Fall back to ./tool/go if no other Go installation is present. Updates tailscale/corp#32493 Signed-off-by: Irbe Krumina <irbekrm@gmail.com>
36 lines
921 B
YAML
36 lines
921 B
YAML
name: go-cache
|
|
description: Set up build to use cigocacher
|
|
|
|
inputs:
|
|
cigocached-url:
|
|
description: URL of the cigocached server
|
|
required: true
|
|
cigocached-host:
|
|
description: Host to dial for the cigocached server
|
|
required: true
|
|
checkout-path:
|
|
description: Path to cloned repository
|
|
required: true
|
|
cache-dir:
|
|
description: Directory to use for caching
|
|
required: true
|
|
|
|
outputs:
|
|
success:
|
|
description: Whether cigocacher was set up successfully
|
|
value: ${{ steps.setup.outputs.success }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup cigocacher
|
|
id: setup
|
|
shell: bash
|
|
env:
|
|
URL: ${{ inputs.cigocached-url }}
|
|
HOST: ${{ inputs.cigocached-host }}
|
|
CACHE_DIR: ${{ inputs.cache-dir }}
|
|
working-directory: ${{ inputs.checkout-path }}
|
|
# https://github.com/orgs/community/discussions/25910
|
|
run: $GITHUB_ACTION_PATH/action.sh
|