forked from gorb/backend
ci: lets try this another way
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed
This commit is contained in:
parent
93ccbcb5f1
commit
0b0befe5b9
1 changed files with 6 additions and 7 deletions
|
@ -6,15 +6,14 @@ steps:
|
||||||
- name: rust-build
|
- name: rust-build
|
||||||
image: rust:bookworm
|
image: rust:bookworm
|
||||||
commands:
|
commands:
|
||||||
- apt update -y && apt install podman -y
|
- rustup target add aarch64-unknown-linux-gnu && \
|
||||||
- cargo install cross
|
apt update && apt install -y \
|
||||||
|
gcc-aarch64-linux-gnu \
|
||||||
|
libc6-dev-arm64-cross
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cross build --target aarch64-unknown-linux-gnu --release
|
- cargo build --target aarch64-unknown-linux-gnu --release
|
||||||
environment:
|
environment:
|
||||||
CROSS_CONTAINER_ENGINE: podman
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||||
CROSS_CONTAINER_IN_CONTAINER: true
|
|
||||||
volumes:
|
|
||||||
- /var/run/podman/podman.sock:/var/run/podman/podman.sock
|
|
||||||
- name: container-build-and-publish
|
- name: container-build-and-publish
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue