89
89
strategy :
90
90
matrix :
91
91
os : [ubuntu-latest]
92
+ target :
93
+ - debian : null
94
+ cross : null
95
+ rust : null
92
96
llvm_version : ["3.9", "4.0", "5.0", "9.0"]
97
+ main_tests : [1]
93
98
release_build : [0, 1]
94
99
no_default_features : [0, 1]
95
100
# FIXME: There are no pre-built static libclang libraries, so the
@@ -121,6 +126,17 @@ jobs:
121
126
feature_extra_asserts : 1
122
127
feature_testing_only_docs : 1
123
128
129
+ - os : ubuntu-latest
130
+ target :
131
+ debian : arm64
132
+ cross : aarch64-linux-gnu
133
+ rust : aarch64-unknown-linux-gnu
134
+ llvm_version : " 9.0"
135
+ main_tests : 0
136
+ release_build : 0
137
+ feature_extra_asserts : 0
138
+ feature_testing_only_docs : 0
139
+
124
140
# Ensure stuff works on macos too
125
141
- os : macos-latest
126
142
llvm_version : " 9.0"
@@ -131,17 +147,36 @@ jobs:
131
147
steps :
132
148
- uses : actions/checkout@v2
133
149
150
+ - name : Install multiarch packages
151
+ if : matrix.target.debian
152
+ run : |
153
+ sudo apt-get install binfmt-support qemu-user-static gcc-${{matrix.target.cross}} g++-${{matrix.target.cross}}
154
+ source /etc/lsb-release
155
+ sudo tee /etc/apt/sources.list <<EOF >/dev/null
156
+ deb [arch=${{matrix.target.debian}}] http://ports.ubuntu.com/ubuntu-ports/ $DISTRIB_CODENAME main
157
+ deb [arch=${{matrix.target.debian}}] http://ports.ubuntu.com/ubuntu-ports/ $DISTRIB_CODENAME-updates main
158
+ deb [arch=${{matrix.target.debian}}] http://ports.ubuntu.com/ubuntu-ports/ $DISTRIB_CODENAME-backports main
159
+ deb [arch=${{matrix.target.debian}}] http://ports.ubuntu.com/ubuntu-ports/ $DISTRIB_CODENAME-security main
160
+ EOF
161
+ sudo dpkg --add-architecture ${{matrix.target.debian}}
162
+ sudo apt-get update
163
+ sudo apt-get install libc6:${{matrix.target.debian}} libstdc++6:${{matrix.target.debian}}
164
+
134
165
- name : Install stable
135
166
uses : actions-rs/toolchain@v1
136
167
with :
137
168
profile : minimal
138
169
toolchain : stable
170
+ target : ${{matrix.target.rust}}
139
171
override : true
140
172
141
173
- name : Run all the tests
142
174
env :
143
175
GITHUB_ACTIONS_OS : ${{matrix.os}}
176
+ RUST_CROSS_COMPILER : ${{matrix.target.cross}}
177
+ RUST_TARGET : ${{matrix.target.rust}}
144
178
LLVM_VERSION : ${{matrix.llvm_version}}
179
+ BINDGEN_MAIN_TESTS : ${{matrix.main_tests}}
145
180
BINDGEN_RELEASE_BUILD : ${{matrix.release_build}}
146
181
BINDGEN_FEATURE_RUNTIME : ${{matrix.feature_runtime}}
147
182
BINDGEN_FEATURE_EXTRA_ASSERTS : ${{matrix.feature_extra_asserts}}
0 commit comments