feat: fix apt not finding gcc in ci/cd

This commit is contained in:
Chance 2025-04-13 20:32:43 -04:00 committed by BitSyndicate
parent 00d9be487d
commit 30c11215b6

View file

@ -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: