-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (52 loc) · 1.4 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: gopath/github.com/katydid/testsuite
- name: Checkout gogoprotobuf
uses: actions/checkout@v4
with:
repository: gogo/protobuf
path: gopath/github.com/gogo/protobuf
- name: Checkout testsuite
uses: actions/checkout@v4
with:
repository: katydid/testsuite
path: gopath/github.com/katydid/testsuite
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.22
- name: Fetch dependencies
run: |
cd gopath/github.com/katydid/testsuite
go mod download -x
- name: Install tools
run: |
cd gopath/github.com/katydid/testsuite
go install -x github.com/gogo/protobuf/protoc-gen-gogo
- name: Setup protoc
run: |
cd gopath/github.com/katydid/testsuite
./install_protoc.sh
- name: Protoc version
run: |
cd gopath/github.com/katydid/testsuite
PATH=$HOME/bin:$PATH protoc --version
- name: env
run: env && go env && pwd
- name: tree
run: tree
- name: Generate
run: |
cd gopath/github.com/katydid/testsuite
PATH=$HOME/bin:$PATH make regenerate
- name: Build
run: |
cd gopath/github.com/katydid/testsuite
make build