Skip to content

add CI

add CI #4

Workflow file for this run

name: OHOS PC Check
on:
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ohos-pc-check-${{ github.ref }}
cancel-in-progress: true
jobs:
ohos-cargo-check:
name: OHOS aarch64 cargo check (release)
runs-on: ubuntu-latest
container:
image: swr.cn-north-4.myhuaweicloud.com/bitfun/bitfun-ade-ohos-ci:20260818
timeout-minutes: 60
env:
CARGO_INCREMENTAL: "0"
NODE_OPTIONS: --max-old-space-size=6144
# Force nightly toolchain without triggering rustup update checks.
# Image has USTC mirror in RUSTUP_DIST_SERVER which is slow from GitHub
# runners in the US; override to official mirror for any required downloads.
RUSTUP_TOOLCHAIN: nightly
RUSTUP_DIST_SERVER: https://static.rust-lang.org
RUSTUP_UPDATE_ROOT: https://static.rust-lang.org/rustup
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install dependencies
run: pnpm install
- name: Build desktop frontend
run: npm run build
- name: Build mobile-web frontend
run: pnpm --filter bitfun-mobile-web build
- name: Init Tauri OHOS target
working-directory: src/apps/desktop
run: cargo tauri ohos init
- name: Cargo check (aarch64-unknown-linux-ohos, release)
working-directory: src/apps/desktop
run: cargo check --target aarch64-unknown-linux-ohos --release