-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (45 loc) · 1.13 KB
/
tests.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
---
name: Test
on:
pull_request:
paths:
- "**.go"
- "go.sum"
push:
branches:
- master
- v[0-9].[0-9]+-dev
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: ["00", "01", "02", "03", "04", "05"]
steps:
- uses: actions/[email protected]
with:
go-version: "1.23.2"
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/**.go
"!test/"
go.mod
go.sum
Makefile
- name: Install libpcap
run: sudo apt-get install --yes libpcap-dev
- uses: ./.github/actions/bls
name: Install BLS library
if: "env.GIT_DIFF != ''"
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
- name: Run Go Tests
env:
CGO_LDFLAGS: "-L/usr/local/lib -ldashbls -lrelic_s -lmimalloc-secure -lgmp"
CGO_CXXFLAGS: "-I/usr/local/include"
run: |
make test-group-${{ matrix.part }} NUM_SPLIT=6
if: env.GIT_DIFF