This repository was archived by the owner on Jan 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (46 loc) · 1.46 KB
/
golangci.yml
File metadata and controls
46 lines (46 loc) · 1.46 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
name: golangci-lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.22'
- uses: actions/checkout@v3
- name: Install RELIC dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential git cmake libgmp-dev libssl-dev libomp-dev
- name: Install RELIC library
run: |
sudo git clone https://github.com/relic-toolkit/relic.git /usr/local/src/relic
cd /usr/local/src/relic
sudo mkdir build && cd build
sudo ../preset/x64-pbc-bls12-381.sh .. \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCHECK=ON
sudo make -j$(nproc)
sudo make install
sudo ldconfig
- name: Set CGO environment variables
run: |
echo "CGO_ENABLED=1" >> $GITHUB_ENV
echo "CGO_CFLAGS=-I/usr/local/include/relic -DRLC_NO_CORE" >> $GITHUB_ENV
echo "CGO_LDFLAGS=-L/usr/local/lib -lrelic_s" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- uses: golangci/golangci-lint-action@v3
with:
version: v1.61
args: --config=.golangci.yml --timeout=10m