Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): add OpenHarmony CI and add it to tier2 #2599

Merged
merged 3 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ env:
MSRV: 1.69.0
# Rust's Loongarch support merged in 1.71.0
MSRV_LOONGARCH: 1.71.0
# Minimal Rust version to support all 3 official OpenHarmony targets as tier2
MSRV_OHOS: 1.78.0
RUSTFLAGS: -Dwarnings

jobs:
Expand Down Expand Up @@ -236,6 +238,9 @@ jobs:
- target: s390x-unknown-linux-gnu
- target: x86_64-unknown-linux-gnux32
- target: x86_64-unknown-netbsd
- target: aarch64-unknown-linux-ohos
- target: armv7-unknown-linux-ohos
- target: x86_64-unknown-linux-ohos

steps:
- name: checkout
Expand All @@ -244,7 +249,8 @@ jobs:
- name: setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: '${{ env.MSRV }}'
# Use a newer version rustc if it is OpenHarmony, remove this workaround after MSRV is newer than 1.78.0
toolchain: "${{ contains(matrix.target, 'ohos') && env.MSRV_OHOS || env.MSRV }}"
components: clippy

- name: install targets
Expand All @@ -259,7 +265,7 @@ jobs:

- name: before_cache_script
run: rm -rf $CARGO_HOME/registry/index


redox:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ The following targets are supported by `nix`:
<li>x86_64-linux-android</li>
<li>x86_64-unknown-illumos</li>
<li>x86_64-unknown-netbsd</li>
<li>aarch64-unknown-linux-ohos</li>
<li>armv7-unknown-linux-ohos</li>
<li>x86_64-unknown-linux-ohos</li>
richerfu marked this conversation as resolved.
Show resolved Hide resolved
</td>
<td>
<li>armv7-unknown-linux-uclibceabihf</li>
Expand Down
1 change: 1 addition & 0 deletions changelog/2599.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add OpenHarmony target into CI and Update documents.