Skip to content

Commit 45aa5ac

Browse files
committed
Split ohos to unit
1 parent 7ade2cb commit 45aa5ac

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,41 @@ jobs:
263263
- name: before_cache_script
264264
run: rm -rf $CARGO_HOME/registry/index
265265

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

267302
redox:
268303
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)