feat: fix apt not finding gcc in ci/cd
This commit is contained in:
parent
4cc993ced5
commit
37abc3f52d
1 changed files with 23 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue