Skip to content

Commit

Permalink
v8.10
Browse files Browse the repository at this point in the history
- CI | Another attempt to fix vaultwarden builds on emulated aarch64: rust-lang/cargo#10583
  • Loading branch information
MichaIng committed Oct 16, 2022
1 parent 349f0a8 commit 72c52bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .build/software/vaultwarden/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ G_AGDUG

# APT dependencies: https://github.com/dani-garcia/vaultwarden/wiki/Building-binary#dependencies
adeps_build=('gcc' 'libc6-dev' 'pkg-config' 'libssl-dev')
(( $G_HW_ARCH == 3 )) && adeps_build+=('git')
adeps=('libc6' 'openssl')
(( $G_DISTRO > 6 )) && adeps+=('libssl3') || adeps+=('libssl1.1')
G_AGI "${adeps_build[@]}"

# Install Rust via https://rustup.rs/
# - ARMv7: Needs to be installed in tmpfs, else builds fail in emulated 32-bit ARM environments: https://github.com/rust-lang/cargo/issues/8719
# - ARMv8: Install and build on disk, else GitHub workflow fails due to insufficient RAM
# - ARMv8: Install and build on disk, else GitHub workflow fails due to insufficient RAM + apply this: https://github.com/rust-lang/cargo/issues/10583
# shellcheck disable=SC2015
(( $G_HW_ARCH == 3 )) && export HOME='/root' || export HOME='/tmp/vaultwarden'
(( $G_HW_ARCH == 3 )) && export HOME='/root' CARGO_NET_GIT_FETCH_WITH_CLI='true' || export HOME='/tmp/vaultwarden'
[[ -d $HOME ]] || G_EXEC mkdir "$HOME"
G_EXEC cd "$HOME"
G_EXEC curl -sSfL 'https://sh.rustup.rs' -o rustup-init.sh
Expand Down

0 comments on commit 72c52bb

Please sign in to comment.