ostree/rust-bindings/.ci/gitlab-ci-base.yml

32 lines
1.2 KiB
YAML
Raw Normal View History

2020-07-24 13:39:18 +02:00
.sccache:
variables:
SCCACHE_URL: https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz
CARGO_TARGET_DIR: ${CI_PROJECT_DIR}/target
CARGO_HOME: ${CI_PROJECT_DIR}/cargo
SCCACHE_DIR: ${CI_PROJECT_DIR}/sccache
RUSTC_WRAPPER: sccache
cache:
paths:
- cargo/
- sccache/
2020-07-24 14:23:24 +02:00
# config with sccache based on Fedora Rawhide, i.e. very recent libostree
2020-07-24 13:39:18 +02:00
.fedora-ostree-devel:
2020-08-25 19:02:02 +02:00
image: registry.fedoraproject.org/fedora:rawhide
2020-07-24 13:39:18 +02:00
extends: .sccache
before_script:
- dnf install -y cargo rust ostree-devel
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
2020-10-17 22:51:59 +02:00
# ??? This seems to not work correctly on Fedora Rawhide right now?
- ln -s /usr/bin/x86_64-redhat-linux-gnu-pkg-config /usr/bin/x86_64-redhat-linux-pkg-config
2020-07-24 13:39:18 +02:00
2020-07-24 14:23:24 +02:00
# config with sccache based on Rust image, i.e. older libostree but shorter setup and rustup access
2020-07-24 13:39:18 +02:00
.rust-ostree-devel:
image: rust
extends: .sccache
before_script:
- apt-get update
- apt-get install -y libostree-dev
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'