# This is a sample build configuration for Rust. # Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples. # Only use spaces to indent your .yml configuration. # ----- # You can specify a custom docker image from Docker Hub as your build environment. image: rust:1.19 pipelines: default: - step: script: - wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.13.tar.gz - tar xvzf libsodium-1.0.13.tar.gz - cd libsodium-1.0.13/ - ./configure --prefix=/usr/local - make && make install - cd .. - SODIUM_STATIC=yes SODIUM_LIB_DIR=/usr/local/lib cargo build --release --verbose - SODIUM_STATIC=yes SODIUM_LIB_DIR=/usr/local/lib cargo test -- --test-threads=1