14
14
CARGO_TERM_VERBOSE : true
15
15
FEATURES : malloc,block,exception,catch_all,verify_message
16
16
UNSTABLE_FEATURES : unstable_autoreleasesafe
17
+ MACOSX_DEPLOYMENT_TARGET : 10.7
18
+ IPHONEOS_DEPLOYMENT_TARGET : 7.0
17
19
# We only support compiling Objective-C code with clang
18
20
CC : clang
19
21
CXX : clang++
53
55
target : i686-apple-darwin
54
56
rust :
55
57
toolchain : nightly
58
+ target : x86_64-apple-darwin
56
59
components : rust-src
57
60
args : -Zbuild-std -Zdoctest-xcompile
58
61
# 32-bit support was removed in 10.15, so we can't test the
@@ -66,16 +69,44 @@ jobs:
66
69
- name : Test GNUStep 32bit
67
70
os : ubuntu-latest
68
71
target : i686-unknown-linux-gnu
69
- rust :
70
- toolchain : stable
71
- # Install compiler for i686-unknown-linux-gnu
72
- target : i686-unknown-linux-gnu
73
72
cflags : -m32
74
73
configureflags : --target=x86-pc-linux-gnu
75
74
args : --features gnustep-1-9
76
-
77
- # - { target: x86_64-apple-ios, os: macos-latest, }
78
- # - { target: aarch64-apple-ios, os: macos-latest, }
75
+ - name : Build iOS ARM64
76
+ os : macos-latest
77
+ target : aarch64-apple-ios
78
+ test-args : --no-run
79
+ - name : Build iOS 64bit x86
80
+ os : macos-latest
81
+ target : x86_64-apple-ios
82
+ test-args : --no-run
83
+ - name : Build iOS ARMv7
84
+ os : macos-latest
85
+ target : armv7-apple-ios
86
+ rust :
87
+ toolchain : nightly
88
+ target : x86_64-apple-darwin
89
+ components : rust-src
90
+ args : -Zbuild-std -Zdoctest-xcompile
91
+ test-args : --no-run
92
+ - name : Build iOS ARMv7s
93
+ os : macos-latest
94
+ target : armv7s-apple-ios
95
+ rust :
96
+ toolchain : nightly
97
+ target : x86_64-apple-darwin
98
+ components : rust-src
99
+ args : -Zbuild-std -Zdoctest-xcompile
100
+ test-args : --no-run
101
+ - name : Build iOS 32bit x86
102
+ os : macos-latest
103
+ target : i386-apple-ios
104
+ rust :
105
+ toolchain : nightly
106
+ target : x86_64-apple-darwin
107
+ components : rust-src
108
+ args : -Zbuild-std -Zdoctest-xcompile
109
+ test-args : --no-run
79
110
80
111
env :
81
112
CARGO_BUILD_TARGET : ${{ matrix.target }}
@@ -102,6 +133,13 @@ jobs:
102
133
libc6-dev:i386 libstdc++-10-dev:i386 libffi-dev:i386 \
103
134
libxml2-dev:i386 libicu-dev:i386
104
135
136
+ - name : Download macOS 10.13 SDK (supports 32-bit)
137
+ if : matrix.target == 'i686-apple-darwin'
138
+ run : |
139
+ wget https://github.com/alexey-lysiuk/macos-sdk/releases/download/10.13/MacOSX10.13.tar.bz2
140
+ tar -xyf MacOSX10.13.tar.bz2
141
+ echo "SDKROOT=$(pwd)/MacOSX10.13.sdk" >> $GITHUB_ENV
142
+
105
143
- name : Cache GNUStep
106
144
if : contains(matrix.os, 'ubuntu')
107
145
id : cache-gnustep
@@ -175,23 +213,14 @@ jobs:
175
213
key : cargo-${{ matrix.name }}-${{ hashFiles('**/Cargo.toml') }}
176
214
177
215
- name : Install Rust toolchain
178
- # Assume default toolchain is already installed
179
- if : matrix.rust
180
216
uses : actions-rs/toolchain@v1
181
217
with :
182
- toolchain : ${{ matrix.rust.toolchain }}
218
+ toolchain : ${{ matrix.rust.toolchain || 'stable' }}
183
219
profile : minimal
184
220
override : true
185
221
components : ${{ matrix.rust.components }}
186
- # Yes, matrix.rust.target, not matrix.target
187
- target : ${{ matrix.rust.target }}
188
-
189
- - name : Download macOS 10.13 SDK (supports 32-bit)
190
- if : matrix.target == 'i686-apple-darwin'
191
- run : |
192
- wget https://github.com/alexey-lysiuk/macos-sdk/releases/download/10.13/MacOSX10.13.tar.bz2
193
- tar -xyf MacOSX10.13.tar.bz2
194
- echo "SDKROOT=$(pwd)/MacOSX10.13.sdk" >> $GITHUB_ENV
222
+ # Allows installing for a different base target
223
+ target : ${{ matrix.rust.target || matrix.target }}
195
224
196
225
- name : Check documentation
197
226
uses : actions-rs/cargo@v1
0 commit comments