forked from gorb/backend
This commit is contained in:
parent
193832b43a
commit
6910afd12a
2 changed files with 9 additions and 16 deletions
|
@ -4,25 +4,18 @@ when:
|
|||
|
||||
steps:
|
||||
- name: build-x86_64
|
||||
image: rust:alpine
|
||||
image: rust:bookworm
|
||||
commands:
|
||||
- apk add openssl-dev musl-dev openssl-libs-static
|
||||
- cargo build --release
|
||||
- name: build-arm64
|
||||
image: rust:alpine
|
||||
image: rust:bookworm
|
||||
commands:
|
||||
- apk add musl-dev
|
||||
- echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
||||
- apk update
|
||||
- apk add gcc-aarch64-linux-musl g++-aarch64-linux-musl
|
||||
- apk add openssl-dev openssl-libs-static --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community --target=aarch64 --no-cache
|
||||
- rustup target add aarch64-unknown-linux-musl
|
||||
- cargo build --target aarch64-unknown-linux-musl --release
|
||||
- dpkg --add-architecture arm64
|
||||
- apt-get update -y && apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross libssl-dev:arm64 pkg-config-aarch64-linux-gnu
|
||||
- rustup target add aarch64-unknown-linux-gnu
|
||||
- cargo build --target aarch64-unknown-linux-gnu --release
|
||||
environment:
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-musl-gcc
|
||||
PKG_CONFIG_ALLOW_CROSS: 1
|
||||
PKG_CONFIG_PATH: /usr/aarch64-linux-musl/lib/pkgconfig
|
||||
OPENSSL_DIR: /usr/aarch64-linux-musl
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||
- name: container-build-and-publish
|
||||
image: docker
|
||||
commands:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue