forked from douban/libmc
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 863 Bytes
/
golang.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
name: Golang
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
gotest:
runs-on: ubuntu-latest
strategy:
matrix:
gover: ["1.15"]
compiler: ["gcc", "clang"]
steps:
- uses: actions/checkout@v2
- name: Setup system dependencies
run: |
sudo apt-get -y install memcached g++
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.gover }}
- name: Start memcached servers
run: ./misc/memcached_server start
- name: Run gotest
run: |
if [[ ${{ matrix.compiler }} = "gcc" ]]; then export CC=gcc CXX=g++; fi
if [[ ${{ matrix.compiler }} = "clang" ]]; then export CC=clang CXX=clang++; fi
./misc/travis/gotest.sh
- name: Stop memcached servers
run: ./misc/memcached_server stop