From 044fa2b1f19455c0e9cf18dd683e4471f9146829 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 2 Dec 2024 20:29:00 +0100 Subject: [PATCH] updated .drone.yml --- .drone.yml | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/.drone.yml b/.drone.yml index aa697c5..0e26d7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,11 +13,11 @@ steps: pull: always commands: - apt-get update -y - - apt-get install -y libnftnl-dev libmnl-dev - - curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_amd64 - - chmod +x /usr/bin/sccache - - cargo build --verbose --all - - cargo test --verbose --all + - apt-get install -y libnftnl-dev libmnl-dev libclang-dev + - curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH} + - chmod +x ${RUSTC_WRAPPER} + - cargo b -v --all + - cargo t -v --all environment: RUSTC_WRAPPER: /usr/bin/sccache SCCACHE_WEBDAV_ENDPOINT: https://sccache.paulbsd.com @@ -36,10 +36,10 @@ steps: pull: always commands: - apt-get update -y - - apt-get install -y libnftnl-dev libmnl-dev - - curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_amd64 - - chmod +x /usr/bin/sccache - - cargo build --release --verbose --all + - apt-get install -y libnftnl-dev libmnl-dev libclang-dev + - curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH} + - chmod +x ${RUSTC_WRAPPER} + - cargo b -r -v --all - cd target/release - tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc environment: @@ -61,9 +61,6 @@ steps: api_key: from_secret: gitea_token files: "target/release/*.tar.gz" - #checksum: - # - sha256 - # - sha512 environment: PLUGIN_TITLE: "" when: @@ -92,11 +89,11 @@ steps: pull: always commands: - apt-get update -y - - apt-get install -y libnftnl-dev libmnl-dev - - curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_arm64 - - chmod +x /usr/bin/sccache - - cargo build --verbose --all - - cargo test --verbose --all + - apt-get install -y libnftnl-dev libmnl-dev libclang-dev + - curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH} + - chmod +x ${RUSTC_WRAPPER} + - cargo b -v --all + - cargo t -v --all environment: RUSTC_WRAPPER: /usr/bin/sccache SCCACHE_WEBDAV_ENDPOINT: https://sccache.paulbsd.com @@ -115,10 +112,10 @@ steps: pull: always commands: - apt-get update -y - - apt-get install -y libnftnl-dev libmnl-dev - - curl -o /usr/bin/sccache https://assets.paulbsd.com/sccache_linux_arm64 - - chmod +x /usr/bin/sccache - - cargo build --release --verbose --all + - apt-get install -y libnftnl-dev libmnl-dev libclang-dev + - curl -o ${RUSTC_WRAPPER} https://assets.paulbsd.com/sccache_linux_${DRONE_STAGE_ARCH} + - chmod +x ${RUSTC_WRAPPER} + - cargo b -r -v --all - cd target/release - tar -czvf ipblc-${DRONE_TAG}-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}.tar.gz ipblc environment: @@ -140,9 +137,6 @@ steps: api_key: from_secret: gitea_token files: "target/release/*.tar.gz" - #checksum: - # - sha256 - # - sha512 environment: PLUGIN_TITLE: "" when: