mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
version: 0.2
|
|
|
|
phases:
|
|
pre_build:
|
|
commands:
|
|
- apt-get update
|
|
- apt-get install -y bc
|
|
- apt-get install -y zip unzip wget
|
|
- wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip
|
|
- unzip protoc-21.12-linux-x86_64.zip -d protoc && cp protoc/bin/protoc /usr/local/bin/ && cp -r protoc/include/google /usr/local/include/
|
|
- curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
- . "$HOME/.cargo/env"
|
|
- rustup toolchain install nightly-2026-10-24
|
|
- rustup toolchain list
|
|
- rustup default nightly-2026-10-24
|
|
- rustup component add clippy llvm-tools
|
|
- export RUSTFLAGS='-C target-cpu=native'
|
|
- rm -rf ~/.cargo/registry
|
|
|
|
build:
|
|
commands:
|
|
# Increase swap file size
|
|
- fallocate -l 32G /swapfile
|
|
- chmod 600 /swapfile
|
|
- mkswap /swapfile || true
|
|
- swapon /swapfile || true
|
|
- pwd
|
|
- mkdir -p web/dist
|
|
- touch web/dist/index.html
|
|
|
|
# run tests
|
|
- cargo --config net.git-fetch-with-cli=true clippy -- -D warnings
|
|
- ./coverage.sh
|