@@ -33,12 +33,13 @@ jobs:
33
33
os : ubuntu-20.04,
34
34
nif : " 2.16" ,
35
35
use-cross : true,
36
+ features : " static_openssl" ,
36
37
}
37
38
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.16", use-cross: true }
38
39
- { target: aarch64-apple-darwin, os: macos-11, nif: "2.16" }
39
40
- { target: x86_64-apple-darwin, os: macos-11, nif: "2.16" }
40
41
- { 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" }
42
43
- { target: x86_64-pc-windows-gnu, os: windows-2019, nif: "2.16" }
43
44
- { target: x86_64-pc-windows-msvc, os: windows-2019, nif: "2.16" }
44
45
# NIF version 2.15
@@ -47,26 +48,28 @@ jobs:
47
48
os : ubuntu-20.04,
48
49
nif : " 2.15" ,
49
50
use-cross : true,
51
+ features : " static_openssl" ,
50
52
}
51
53
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.15", use-cross: true }
52
54
- { target: aarch64-apple-darwin, os: macos-11, nif: "2.15" }
53
55
- { target: x86_64-apple-darwin, os: macos-11, nif: "2.15" }
54
56
- { 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" }
56
58
- { target: x86_64-pc-windows-gnu, os: windows-2019, nif: "2.15" }
57
59
- { target: x86_64-pc-windows-msvc, os: windows-2019, nif: "2.15" }
58
- # # NIF version 2.14
60
+ # NIF version 2.14
59
61
- {
60
62
target : arm-unknown-linux-gnueabihf,
61
63
os : ubuntu-20.04,
62
64
nif : " 2.14" ,
63
65
use-cross : true,
66
+ features : " static_openssl" ,
64
67
}
65
68
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, nif: "2.14", use-cross: true }
66
69
- { target: aarch64-apple-darwin, os: macos-11, nif: "2.14" }
67
70
- { target: x86_64-apple-darwin, os: macos-11, nif: "2.14" }
68
71
- { 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" }
70
73
- { target: x86_64-pc-windows-gnu, os: windows-2019, nif: "2.14" }
71
74
- { target: x86_64-pc-windows-msvc, os: windows-2019, nif: "2.14" }
72
75
76
79
- name : Checkout source code
77
80
uses : actions/checkout@v2
78
81
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
-
87
82
- name : Extract crate information
88
83
shell : bash
89
84
run : |
@@ -115,18 +110,18 @@ jobs:
115
110
if : ${{ matrix.job.use-cross }}
116
111
with :
117
112
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"
120
115
tarball_binary_path : " ${binary}"
121
116
smoke_test : " ${binary} --version"
122
117
123
118
- name : Build
124
119
shell : bash
125
120
run : |
126
121
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 }}
128
123
else
129
- cargo build --release --target=${{ matrix.job.target }}
124
+ cargo build --release --target=${{ matrix.job.target }} --features=${{ matrix.job.features }}
130
125
fi
131
126
132
127
- name : Rename lib to the final name
0 commit comments