@@ -33,12 +33,13 @@ jobs:
3333 os : ubuntu-20.04,
3434 nif : " 2.16" ,
3535 use-cross : true,
36+ features : " static_openssl" ,
3637 }
3738 - { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.16", use-cross: true }
3839 - { target: aarch64-apple-darwin, os: macos-11, nif: "2.16" }
3940 - { target: x86_64-apple-darwin, os: macos-11, nif: "2.16" }
4041 - { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.16" }
41- - { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, nif: "2.16", use-cross: true }
42+ - { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, nif: "2.16", use-cross: true, features: "static_openssl" }
4243 - { target: x86_64-pc-windows-gnu, os: windows-2019, nif: "2.16" }
4344 - { target: x86_64-pc-windows-msvc, os: windows-2019, nif: "2.16" }
4445 # NIF version 2.15
@@ -47,26 +48,28 @@ jobs:
4748 os : ubuntu-20.04,
4849 nif : " 2.15" ,
4950 use-cross : true,
51+ features : " static_openssl" ,
5052 }
5153 - { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.15", use-cross: true }
5254 - { target: aarch64-apple-darwin, os: macos-11, nif: "2.15" }
5355 - { target: x86_64-apple-darwin, os: macos-11, nif: "2.15" }
5456 - { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.15" }
55- - { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, nif: "2.15", use-cross: true }
57+ - { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, nif: "2.15", use-cross: true, features: "static_openssl" }
5658 - { target: x86_64-pc-windows-gnu, os: windows-2019, nif: "2.15" }
5759 - { target: x86_64-pc-windows-msvc, os: windows-2019, nif: "2.15" }
58- # # NIF version 2.14
60+ # NIF version 2.14
5961 - {
6062 target : arm-unknown-linux-gnueabihf,
6163 os : ubuntu-20.04,
6264 nif : " 2.14" ,
6365 use-cross : true,
66+ features : " static_openssl" ,
6467 }
6568 - { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.14", use-cross: true }
6669 - { target: aarch64-apple-darwin, os: macos-11, nif: "2.14" }
6770 - { target: x86_64-apple-darwin, os: macos-11, nif: "2.14" }
6871 - { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.14" }
69- - { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, nif: "2.14", use-cross: true }
72+ - { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, nif: "2.14", use-cross: true, features: "static_openssl" }
7073 - { target: x86_64-pc-windows-gnu, os: windows-2019, nif: "2.14" }
7174 - { target: x86_64-pc-windows-msvc, os: windows-2019, nif: "2.14" }
7275
7679 - name : Checkout source code
7780 uses : actions/checkout@v2
7881
79- - name : Install prerequisites
80- shell : bash
81- run : |
82- case ${{ matrix.job.target }} in
83- arm-unknown-linux-*) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf libssl-dev openssl;;
84- aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu libssl-dev openssl;;
85- esac
86-
8782 - name : Extract crate information
8883 shell : bash
8984 run : |
@@ -115,18 +110,18 @@ jobs:
115110 if : ${{ matrix.job.use-cross }}
116111 with :
117112 binary : " cross"
118- version : " v0.2.1 "
119- download_url : " https://github.com/rust-embedded /cross/releases/download/${version}/cross-${version} -x86_64-unknown-linux-gnu.tar.gz"
113+ version : " v0.2.4 "
114+ download_url : " https://github.com/cross-rs /cross/releases/download/${version}/cross-x86_64-unknown-linux-gnu.tar.gz"
120115 tarball_binary_path : " ${binary}"
121116 smoke_test : " ${binary} --version"
122117
123118 - name : Build
124119 shell : bash
125120 run : |
126121 if [ "${{ matrix.job.use-cross }}" == "true" ]; then
127- cross build --release --target=${{ matrix.job.target }}
122+ cross build --release --target=${{ matrix.job.target }} --features=${{ matrix.job.features }}
128123 else
129- cargo build --release --target=${{ matrix.job.target }}
124+ cargo build --release --target=${{ matrix.job.target }} --features=${{ matrix.job.features }}
130125 fi
131126
132127 - name : Rename lib to the final name
0 commit comments