Skip to content

Commit

Permalink
ci: Test API-13 bindings build in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Jan 9, 2025
1 parent c277a68 commit 5aa08d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
api_feature_levels:
strategy:
matrix:
api_level: ["api-10", "api-11", "api-12"]
api_level: ["api-10", "api-11", "api-12", "api-13"]
name: Build with API feature levels
runs-on: ubuntu-latest
steps:
Expand All @@ -56,6 +56,8 @@ jobs:
run: cargo build --features api-11 --features ${{ matrix.component }}
- name: Build minimal features API-12
run: cargo build --features api-12 --features ${{ matrix.component }}
- name: Build minimal features API-13
run: cargo build --features api-13 --features ${{ matrix.component }}

semver_checks:
runs-on: ubuntu-latest
Expand Down
14 changes: 13 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,21 @@ api-12 = ["api-11",
"ohos-ime-sys?/api-12",
"ohos-image-kit-sys?/api-12",
"xcomponent-sys?/api-12",
"ohos-vsync-sys?/api-11",
"ohos-vsync-sys?/api-12",
]

## Enables bindings for OpenHarmony API-level 13
api-13 = ["api-12",
"arkui-sys?/api-13",
"ohos-deviceinfo-sys?/api-13",
"ohos-drawing-sys?/api-13",
"hilog-sys?/api-13",
"hitrace-sys?/api-13",
"ohos-ime-sys?/api-13",
"ohos-image-kit-sys?/api-13",
"xcomponent-sys?/api-13",
"ohos-vsync-sys?/api-13",
]
#! ### Features of dependencies
#!
#! Re-exports features of individual component crates of `ohos-sys`.
Expand Down

0 comments on commit 5aa08d1

Please sign in to comment.