consensus/.drone.yml
DataHoarder 279287c1cc
All checks were successful
continuous-integration/drone/push Build is passing
Use secrets on CI to specify monerod node
2023-05-18 05:31:45 +02:00

51 lines
1.4 KiB
YAML

---
kind: pipeline
type: docker
name: from-source-amd64
platform:
os: linux
arch: amd64
environment:
GOPROXY: direct
GOARCH: amd64
GOAMD64: v3
GOOS: linux
CFLAGS: "-march=native -Ofast"
LDFLAGS: "-flto"
PKG_CONFIG_PATH: "/drone/src/build_deps/lib/pkgconfig"
LD_LIBRARY_PATH: "/drone/src/build_deps/lib"
CGO_CFLAGS: "-I/drone/src/build_deps/include"
CGO_LDFLAGS: "-L/drone/src/build_deps/lib"
workspace:
path: /drone/src
steps:
- name: init-tests
image: alpine
commands:
- apk add --no-cache curl gzip bash
- ./testdata/setup.sh
- name: build-sources
image: alpine
commands:
- apk update
- apk add --no-cache git gcc g++ musl-dev bash autoconf automake cmake make libtool
- cd /tmp
- git clone --depth 1 --branch master https://github.com/tevador/RandomX.git && cd RandomX && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX:PATH=/drone/src/build_deps && make -j$(nproc) && make install && cd ../..
- name: test-cgo
image: golang:1.20-alpine
depends_on:
- init-tests
- build-sources
environment:
MONEROD_RPC_URL:
from_secret: MONEROD_RPC_URL
MONEROD_ZMQ_URL:
from_secret: MONEROD_ZMQ_URL
commands:
- apk update
- apk add --no-cache git gcc g++ musl-dev pkgconfig
- go test -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v ./...