From 410b4acc3ea4140389ed71353317f008e9d64444 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 5 Jan 2022 20:54:42 +0100 Subject: [PATCH 1/2] Hopefully added sccache support --- .woodpecker.yml | 8 ++++++++ PKGBUILD | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7a82b2d..90bfc87 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,14 @@ pipeline: build: image: 'archlinux:latest' + environment: + - SCCACHE_BUCKET=bur + - SCCACHE_ENDPOINT=s3.rustybever.be + - SCCACHE_S3_USE_SSL=true + - SCCACHE_S3_KEY_PREFIX=jjr-newsflash + secrets: + - aws_access_key_id + - aws_secret_access_key commands: # Update packages - pacman -Syu --needed --noconfirm base-devel diff --git a/PKGBUILD b/PKGBUILD index 8375a44..2407a4b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -9,7 +9,7 @@ arch=(any) url="https://gitlab.com/news-flash/news_flash_gtk" license=(GPL3) depends=(libhandy webkit2gtk) -makedepends=(git cargo meson rust) +makedepends=(git cargo meson rust sccache) conflicts=(newsflash) source=("git+https://gitlab.com/news-flash/news_flash_gtk.git") sha512sums=("SKIP") From 6b436792e667a07be2c2e33bfcefc43e8fd4ef04 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 5 Jan 2022 20:56:59 +0100 Subject: [PATCH 2/2] Forgot RUSTC_WRAPPER --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 90bfc87..11f49d9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,6 +6,7 @@ pipeline: - SCCACHE_ENDPOINT=s3.rustybever.be - SCCACHE_S3_USE_SSL=true - SCCACHE_S3_KEY_PREFIX=jjr-newsflash + - RUSTC_WRAPPER=/usr/bin/sccache secrets: - aws_access_key_id - aws_secret_access_key