File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1616 MSRV : 1.69.0
1717 # Rust's Loongarch support merged in 1.71.0
1818 MSRV_LOONGARCH : 1.71.0
19+ # Minimal Rust version to support all 3 official OpenHarmony targets as tier2
20+ MSRV_OHOS : 1.79.0
1921 RUSTFLAGS : -Dwarnings
2022
2123jobs :
@@ -247,7 +249,8 @@ jobs:
247249 - name : setup Rust
248250 uses : dtolnay/rust-toolchain@master
249251 with :
250- toolchain : ' ${{ env.MSRV }}'
252+ # Use a newer version rustc if it is OpenHarmony, remove this workaround after MSRV is newer than 1.79.0
253+ toolchain : " ${{ contains(matrix.target, 'ohos') && env.MSRV_OHOS || env.MSRV }}"
251254 components : clippy
252255
253256 - name : install targets
@@ -262,7 +265,6 @@ jobs:
262265
263266 - name : before_cache_script
264267 run : rm -rf $CARGO_HOME/registry/index
265-
266268
267269 redox :
268270 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments