Skip to content

Commit

Permalink
Split ohos to unit
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Feb 6, 2025
1 parent 7ade2cb commit 0313a91
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ 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 @@ -263,6 +260,41 @@ jobs:
- name: before_cache_script
run: rm -rf $CARGO_HOME/registry/index

openharmony:
runs-on: ubuntu-latest
needs: [rustfmt, minver, macos, linux_native_builds, rust_stable]
env:
BUILD: check
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-unknown-linux-ohos
- target: armv7-unknown-linux-ohos
- target: x86_64-unknown-linux-ohos

steps:
- name: checkout
uses: actions/checkout@v4

- name: setup Rust
uses: dtolnay/rust-toolchain@master
with:
# OpenHarmony is supported with tier2 with 1.79.0 or newer.
toolchain: '1.79.0'
components: clippy

- name: install targets
run: rustup target add ${{ matrix.target }}

- name: build
uses: ./.github/actions/build
with:
TARGET: '${{ matrix.target }}'
BUILD: '${{ env.BUILD }}'

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

redox:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0313a91

Please sign in to comment.