forked from vercel/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
36 lines (33 loc) · 976 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Turborepo Go Setup"
description: "Sets Go up for CI"
inputs:
github-token:
description: "GitHub token. You can pass secrets.GITHUB_TOKEN"
required: true
runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true
cache-dependency-path: cli/go.sum
- name: Set Up Protoc
id: set-up-protoc
continue-on-error: true
uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ inputs.github-token }}
- name: Set Up Protoc (second try)
if: steps.set-up-protoc.outcome == 'failure'
uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ inputs.github-token }}
- name: Set Up GRPC protobuf
shell: bash
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0