feat: fix apt not finding gcc in ci/cd
This commit is contained in:
parent
00d9be487d
commit
30c11215b6
1 changed files with 23 additions and 3 deletions
|
@ -39,8 +39,18 @@ build_linux:
|
||||||
EXT: ""
|
EXT: ""
|
||||||
RUSTFLAGS: "-Clinker=riscv64-linux-gnu-gcc"
|
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:
|
before_script:
|
||||||
- apt-get update && apt-get install -y \
|
- apt-get update
|
||||||
|
- |
|
||||||
|
apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
gcc-aarch64-linux-gnu \
|
gcc-aarch64-linux-gnu \
|
||||||
gcc-powerpc64le-linux-gnu \
|
gcc-powerpc64le-linux-gnu \
|
||||||
|
@ -67,8 +77,18 @@ build_windows_msvc:
|
||||||
BINARY_NAME: zenyx-x86_64-windows-msvc.exe
|
BINARY_NAME: zenyx-x86_64-windows-msvc.exe
|
||||||
EXT: ".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:
|
before_script:
|
||||||
- apt-get update && apt-get install -y lld
|
- apt-get update
|
||||||
|
- apt-get install -y lld
|
||||||
- rustup target add "$TARGET"
|
- rustup target add "$TARGET"
|
||||||
- cargo install cargo-xwin --locked
|
- cargo install cargo-xwin --locked
|
||||||
- cargo xwin build --release --target "$TARGET"
|
- cargo xwin build --release --target "$TARGET"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue