Update docker-build-static.yml

This commit is contained in:
Dedy Martadinata S 2022-07-14 13:45:33 +07:00 committed by GitHub
parent 568a7f61cd
commit d57e3cbec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Ctarget-feature=+crt-static
OPENSSL_INCLUDE_DIR: "/usr/include/gnutls/"
CARGO_HOME: ${GITHUB_WORKSPACE}/.cargo
# In total 5 jobs, all of the jobs are containerized
# ---
@ -106,7 +106,8 @@ jobs:
image: rust:1.61
env:
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
OPENSSL_LIB_DIR: "/usr/lib/arm-linux-gnueabihf/"
OPENSSL_LIB_DIR: "/usr/lib/arm-linux-gnueabihf/"
CARGO_HOME: ${GITHUB_WORKSPACE}/.cargo
steps:
- name: add armhf architecture
run: dpkg --add-architecture armhf
@ -154,6 +155,7 @@ jobs:
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
OPENSSL_LIB_DIR: "/usr/lib/aarch64-linux-gnu/"
CARGO_HOME: ${GITHUB_WORKSPACE}/.cargo
steps:
- name: add arm64 architecture
run: dpkg --add-architecture arm64
@ -201,6 +203,7 @@ jobs:
image: rust:1.61
env:
CARGO_TERM_COLOR: always
CARGO_HOME: ${GITHUB_WORKSPACE}/.cargo
steps:
- name: install runtime
run: apt update && apt install -y gcc-x86-64-linux-gnu g++-x86-64-linux-gnu libc6-dev libgnutls28-dev tar