-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (54 loc) · 1.58 KB
/
basic.yml
File metadata and controls
68 lines (54 loc) · 1.58 KB
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
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04,macos-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Cache built prerequisites
uses: actions/cache@v3
with:
path: |
~/awssdk-install
~/gcssdk-install
~/protobuf-install
key: ${{matrix.os}}-cache-sdk-prereqs-v1
- name: Install dependencies
working-directory: ${{ github.workspace }}/bindings
run: |
go get google.golang.org/protobuf/proto
go get github.com/go-gota/gota/series
go get github.com/go-gota/gota/dataframe
go mod download github.com/golang/protobuf
go install github.com/golang/protobuf/protoc-gen-go@latest
- name: Install native GenomicsDB
working-directory: ${{ github.workspace }}/install-genomicsdb
run: |
go build -v
./install-genomicsdb
- name: Build and test
working-directory: ${{ github.workspace }}/bindings
run: |
source ../install-genomicsdb/genomicsdb.env
go build -v
go test -v