From 37abc3f52d642ed2f9128d05949104530d3c958b Mon Sep 17 00:00:00 2001 From: Chance Date: Sun, 13 Apr 2025 20:32:43 -0400 Subject: [PATCH] feat: fix apt not finding gcc in ci/cd --- .gitlab-ci.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0326db5..a876dda 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,8 +39,18 @@ build_linux: EXT: "" RUSTFLAGS: "-Clinker=riscv64-linux-gnu-gcc" + cache: + key: "${CI_JOB_NAME}-${CI_COMMIT_SHA}" + policy: pull-push + paths: + - "$HOME/.cargo/registry" + - "$HOME/.cargo/git" + - target + before_script: - - apt-get update && apt-get install -y \ + - apt-get update + - | + apt-get install -y \ build-essential \ gcc-aarch64-linux-gnu \ gcc-powerpc64le-linux-gnu \ @@ -67,8 +77,18 @@ build_windows_msvc: BINARY_NAME: zenyx-x86_64-windows-msvc.exe EXT: ".exe" + cache: + key: "${CI_JOB_NAME}-${CI_COMMIT_SHA}" + policy: pull-push + paths: + - "$HOME/.cargo/registry" + - "$HOME/.cargo/git" + - target + - .cache/cargo-xwin + before_script: - - apt-get update && apt-get install -y lld + - apt-get update + - apt-get install -y lld - rustup target add "$TARGET" - cargo install cargo-xwin --locked - cargo xwin build --release --target "$TARGET" @@ -81,7 +101,7 @@ build_windows_msvc: paths: - artifacts/* expire_in: 1 week - + publish: stage: publish script: