-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 991 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (34 loc) · 991 Bytes
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.26'
- name: Install native deps
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake pkg-config liblz4-dev libssl-dev
- name: Build C++ streamer
run: |
cd clib
rm -rf build && mkdir build && cd build
cmake ..
cmake --build . -- -j2
- name: Go fmt check
run: |
gofmt -l . | tee /tmp/gofmt.out
if [ -s /tmp/gofmt.out ]; then echo "gofmt issues:" && cat /tmp/gofmt.out && exit 1; fi
- name: Run unit tests (fast)
run: go test ./... -v
- name: Run full tests with cgo_streamer
run: go test ./... -v -tags cgo_streamer