-
Notifications
You must be signed in to change notification settings - Fork 23
46 lines (33 loc) · 954 Bytes
/
go.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
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build w/ CGO
run: GOOS=linux go build
- name: Build w/o CGO
run: GOOS=linux CGO_ENABLED=0 go build
- name: WASM Build
run: GOOS=js GOARCH=wasm go build
- name: Test decompression w/ CGO
run: go test -v -run TestPublicKeyDecompression -count 100
- name: Test decompression w/o CGO
run: CGO_ENABLED=0 go test -v -run TestPublicKeyDecompression -count 100
- name: Test w/ CGO
run: go test -v ./...
- name: Test w/o CGO
run: CGO_ENABLED=0 go test -v ./...
- name: Test race w/ CGO
run: go test -race -v ./...
- name: Test race w/o CGO
run: go test -tags=ecies_test_race -race -v ./...