Skip to content

Commit 981c2ad

Browse files
committed
fix: update ohos msrv to 1.79.0
1 parent 7ade2cb commit 981c2ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ env:
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

2123
jobs:
@@ -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

0 commit comments

Comments
 (0)