Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ jobs:
- uses: actions/checkout@v4
- name: Setup OpenHarmony SDK
id: setup_sdk
uses: openharmony-rs/setup-ohos-sdk@v0.1
uses: openharmony-rs/setup-ohos-sdk@v0.2
with:
version: "4.1"
version: "5.0.2"
- name: Install Rust
uses: dtolnay/rust-toolchain@master
id: toolchain
Expand Down
12 changes: 10 additions & 2 deletions ohos-build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python3
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Expand All @@ -12,9 +12,17 @@ from typing import Dict, Optional


def get_target_from_args() -> Optional[str]:
is_target_arg = False
for arg in sys.argv:
if arg.startswith("--target="):
if is_target_arg:
return arg
elif arg.startswith("--target="):
return arg.replace("--target=", "")
elif arg == "--target":
is_target_arg = True
continue
if is_target_arg:
print("Warn: Missing argument after `--target`.")
return None


Expand Down
Loading