-
Notifications
You must be signed in to change notification settings - Fork 67
89 lines (70 loc) · 2.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Build using GitHub Actions
on:
push:
branches:
- master
- '*'
pull_request:
branches:
- master
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.16']
node-version: ['v8.12.0'] # version Travis was using
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
GO111MODULE: auto
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
steps:
- name: checkout code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# install deps
- run: sudo apt-get -qq update
- run: sudo apt-get install -qq time
- run: sudo apt-get install -qq build-essential libssl-dev git unzip
- run: sudo apt-get install -qq libluajit-5.1-2 libluajit-5.1-common
# install wrk
# they need to be on a single line otherwise `working-directory` directive will change the working path.
- run: git clone https://github.com/wg/wrk.git wrk && cd wrk && make && sudo cp -r wrk /usr/local/bin
# install protoc
- run: curl -0L -O https://github.com/google/protobuf/releases/download/v3.7.1/protoc-3.7.1-linux-x86_64.zip
- run: sudo unzip -o protoc-3.7.1-linux-x86_64.zip -d /usr/local bin/protoc
- run: rm -f protoc-3.7.1-linux-x86_64.zip
- name: make jenkins-install
run: make jenkins-install
- name: make jenkins-test
run: make jenkins-test
- name: make install
run: make install
- name: make fast-bench
run: make fast-bench
- name: make bins
run: make bins
- name: make test-benchmark-runner
run: make test-benchmark-runner
# TODO: (cp) enable code coverage
# - name: make cover
# run: make cover
# - name: Publish to coveralls.io
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}/coverage/lcov.info
- run: echo "🍏 This job's status is ${{ job.status }}."