File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,19 @@ jobs:
4444 - name : Configure vendored OpenSSL for armv7
4545 if : matrix.platform.target == 'armv7'
4646 run : |
47+ sudo apt-get update
48+ sudo apt-get install -y gcc-arm-linux-gnueabihf
49+
50+ # Force openssl-sys to build vendored OpenSSL
4751 echo "OPENSSL_NO_VENDOR=0" >> $GITHUB_ENV
4852 echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
49- echo "CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
53+
54+ # Use the cross-compiler as CC and tell Cargo to use it
55+ echo "CC=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
56+ echo "CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
57+
5058 - name : Install perl dependencies for OpenSSL
5159 run : |
52- # Install Perl and required modules for OpenSSL build
5360 sudo apt-get update
5461 sudo apt-get install -y perl make cpanminus libssl-dev
5562 sudo cpanm IPC::Cmd Locale::Maketext::Simple Text::Template Params::Check
You can’t perform that action at this time.
0 commit comments