File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 16
16
MSRV : 1.69.0
17
17
# Rust's Loongarch support merged in 1.71.0
18
18
MSRV_LOONGARCH : 1.71.0
19
+ # Minimal Rust version to support all 3 official OpenHarmony targets as tier2
20
+ MSRV_OHOS : 1.78.0
19
21
RUSTFLAGS : -Dwarnings
20
22
21
23
jobs :
@@ -236,6 +238,9 @@ jobs:
236
238
- target : s390x-unknown-linux-gnu
237
239
- target : x86_64-unknown-linux-gnux32
238
240
- target : x86_64-unknown-netbsd
241
+ - target : aarch64-unknown-linux-ohos
242
+ - target : armv7-unknown-linux-ohos
243
+ - target : x86_64-unknown-linux-ohos
239
244
240
245
steps :
241
246
- name : checkout
@@ -244,7 +249,8 @@ jobs:
244
249
- name : setup Rust
245
250
uses : dtolnay/rust-toolchain@master
246
251
with :
247
- toolchain : ' ${{ env.MSRV }}'
252
+ # Use a newer version rustc if it is OpenHarmony, remove this workaround after MSRV is newer than 1.78.0
253
+ toolchain : " ${{ contains(matrix.target, 'ohos') && env.MSRV_OHOS || env.MSRV }}"
248
254
components : clippy
249
255
250
256
- name : install targets
@@ -259,7 +265,7 @@ jobs:
259
265
260
266
- name : before_cache_script
261
267
run : rm -rf $CARGO_HOME/registry/index
262
-
268
+
263
269
264
270
redox :
265
271
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -81,14 +81,17 @@ The following targets are supported by `nix`:
81
81
<ul >
82
82
<li>aarch64-apple-ios</li>
83
83
<li>aarch64-linux-android</li>
84
+ <li>aarch64-unknown-linux-ohos</li>
84
85
<li>arm-linux-androideabi</li>
85
86
<li>arm-unknown-linux-musleabi</li>
86
87
<li>armv7-linux-androideabi</li>
88
+ <li>armv7-unknown-linux-ohos</li>
87
89
<li>i686-linux-android</li>
88
90
<li>loongarch64-unknown-linux-gnu</li>
89
91
<li>s390x-unknown-linux-gnu</li>
90
92
<li>x86_64-linux-android</li>
91
93
<li>x86_64-unknown-illumos</li>
94
+ <li>x86_64-unknown-linux-ohos</li>
92
95
<li>x86_64-unknown-netbsd</li>
93
96
</td >
94
97
<td >
Original file line number Diff line number Diff line change
1
+ Add OpenHarmony target into CI and Update documents.
You can’t perform that action at this time.
0 commit comments