From 290e70c08b8abd75c9b237bd47fd46d4e6c082d3 Mon Sep 17 00:00:00 2001 From: theMackabu Date: Thu, 27 Jun 2024 20:30:03 -0700 Subject: [PATCH] add sccache to gitlab actions --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b30e8fa..db6bf66 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ stages: [build, release] -image: 'themackabu/rust:zigbuild-1.79.0' +image: 'themackabu/rust:zigbuild-1.79.0-sccache' before_script: - mkdir binary @@ -14,7 +14,7 @@ build_linux_amd64: only: [/\d+\.\d+\.\d+.*$/] script: - cargo zigbuild -r --color always - - zip binary/pmc_${CI_COMMIT_TAG}_linux_amd64.zip target/release/pmc -j + - zip binary/pmc_${CI_COMMIT_TAG}_linux_amd64.zip /usr/local/build/target/release/pmc -j artifacts: paths: [binary/] @@ -24,7 +24,7 @@ build_linux_aarch64: only: [/\d+\.\d+\.\d+.*$/] script: - cargo zigbuild -r --target aarch64-unknown-linux-gnu --color always - - zip binary/pmc_${CI_COMMIT_TAG}_linux_aarch64.zip target/aarch64-unknown-linux-gnu/release/pmc -j + - zip binary/pmc_${CI_COMMIT_TAG}_linux_aarch64.zip /usr/local/build/target/aarch64-unknown-linux-gnu/release/pmc -j artifacts: paths: [binary/] @@ -34,7 +34,7 @@ build_darwin_amd64: only: [/\d+\.\d+\.\d+.*$/] script: - cargo zigbuild -r --target x86_64-apple-darwin --color always - - zip binary/pmc_${CI_COMMIT_TAG}_darwin_amd64.zip target/x86_64-apple-darwin/release/pmc -j + - zip binary/pmc_${CI_COMMIT_TAG}_darwin_amd64.zip /usr/local/build/target/x86_64-apple-darwin/release/pmc -j artifacts: paths: [binary/] @@ -44,6 +44,6 @@ build_darwin_aarch64: only: [/\d+\.\d+\.\d+.*$/] script: - cargo zigbuild -r --target aarch64-apple-darwin --color always - - zip binary/pmc_${CI_COMMIT_TAG}_darwin_arm.zip target/aarch64-apple-darwin/release/pmc -j + - zip binary/pmc_${CI_COMMIT_TAG}_darwin_arm.zip /usr/local/build/target/aarch64-apple-darwin/release/pmc -j artifacts: paths: [binary/] -- GitLab