add CI #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| 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 |