feat: fix apt not finding gcc in ci/cd

This commit is contained in:
Chance 2025-04-13 20:32:43 -04:00
parent df6c30e91f
commit 28395167f0
Signed by untrusted user: caznix
GPG key ID: 489D213143D753FD

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"