From 1a3bd2b5202fd1ddcb06e04cf942dbb11095380e Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 14 Nov 2021 15:23:36 +0000 Subject: [PATCH] Try using sccache --- .woodpecker.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1259cb0..01c14f5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,14 +11,23 @@ pipeline: # - 'vendor' unitTests: - image: rust:1.54.0-slim + image: docker.bics.ga/rei_ci/rust-sccache commands: - DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev > /dev/null - cargo build --all - cargo test --all + environment: + RUSTC_WRAPPER: /usr/local/bin/sccache + SCCACHE_S3_USE_SLL: "true" + SCCACHE_ENDPOINT: "richie.m4.tanukitsu.net" + secrets: + - sccache_bucket + - aws_access_key_id + - aws_secret_access_key + testSuite: - image: rust:1.54.0-slim-bullseye + image: docker.bics.ga/rei_ci/rust-sccache commands: - DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -yqq -o=Dpkg::Use-Pty=0 install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv postgresql postgresql-client mariadb-server mariadb-client zstd lz4 > /dev/null - pg_ctlcluster 13 main start @@ -32,6 +41,14 @@ pipeline: - python3.9 -m venv testsuite/.venv - ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres -e datman-helper-mysql - cd testsuite && . .venv/bin/activate && TEST_POSTGRES=$(hostname),testsuitedb,root TEST_MYSQL=$(hostname),testsuitemydb,root green + environment: + RUSTC_WRAPPER: /usr/local/bin/sccache + SCCACHE_S3_USE_SLL: "true" + SCCACHE_ENDPOINT: "richie.m4.tanukitsu.net" + secrets: + - sccache_bucket + - aws_access_key_id + - aws_secret_access_key deployManual: image: rust:1.54.0-slim