Skip to content

Commit 0313a91

Browse files
committed
Split ohos to unit
1 parent 7ade2cb commit 0313a91

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/ci.yml

+35-3
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ jobs:
236236
- target: s390x-unknown-linux-gnu
237237
- target: x86_64-unknown-linux-gnux32
238238
- target: x86_64-unknown-netbsd
239-
- target: aarch64-unknown-linux-ohos
240-
- target: armv7-unknown-linux-ohos
241-
- target: x86_64-unknown-linux-ohos
242239

243240
steps:
244241
- name: checkout
@@ -263,6 +260,41 @@ jobs:
263260
- name: before_cache_script
264261
run: rm -rf $CARGO_HOME/registry/index
265262

263+
openharmony:
264+
runs-on: ubuntu-latest
265+
needs: [rustfmt, minver, macos, linux_native_builds, rust_stable]
266+
env:
267+
BUILD: check
268+
strategy:
269+
fail-fast: false
270+
matrix:
271+
include:
272+
- target: aarch64-unknown-linux-ohos
273+
- target: armv7-unknown-linux-ohos
274+
- target: x86_64-unknown-linux-ohos
275+
276+
steps:
277+
- name: checkout
278+
uses: actions/checkout@v4
279+
280+
- name: setup Rust
281+
uses: dtolnay/rust-toolchain@master
282+
with:
283+
# OpenHarmony is supported with tier2 with 1.79.0 or newer.
284+
toolchain: '1.79.0'
285+
components: clippy
286+
287+
- name: install targets
288+
run: rustup target add ${{ matrix.target }}
289+
290+
- name: build
291+
uses: ./.github/actions/build
292+
with:
293+
TARGET: '${{ matrix.target }}'
294+
BUILD: '${{ env.BUILD }}'
295+
296+
- name: before_cache_script
297+
run: rm -rf $CARGO_HOME/registry/index
266298

267299
redox:
268300
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)