Skip to content

Commit

Permalink
Update the building workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iyangsj committed Oct 10, 2024
1 parent e6ecff9 commit 7c260f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,11 @@ jobs:
toolchain: stable
target: 'aarch64-unknown-linux-ohos,armv7-unknown-linux-ohos,x86_64-unknown-linux-ohos'

- name: Run cargo build
run: cargo install ohrs && ohrs build -- --verbose --features ffi --release
- name: Install ohrs
run: cargo install ohrs

- name: Run ohrs build
run: ohrs build -- --verbose --features ffi --release

static_analysis:
name: Static analysis
Expand Down
9 changes: 4 additions & 5 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,7 @@ fn new_boringssl_cmake_config() -> cmake::Config {
for (name, value) in *params {
boringssl_cmake.define(name, value);
}
// common arguments for ohos help us to ignore some error
boringssl_cmake
.define("CMAKE_C_FLAGS", "-Wno-unused-command-line-argument");
boringssl_cmake
.define("CMAKE_CXX_FLAGS", "-Wno-unused-command-line-argument");
break;
}
}

Expand All @@ -129,6 +125,9 @@ fn new_boringssl_cmake_config() -> cmake::Config {
let toolchain_file = ohos_ndk_home.join("native/build/cmake/ohos.toolchain.cmake");
let toolchain_file = toolchain_file.to_str().unwrap();
boringssl_cmake.define("CMAKE_TOOLCHAIN_FILE", toolchain_file);
// common arguments for ohos help us to ignore some error
boringssl_cmake.define("CMAKE_C_FLAGS", "-Wno-unused-command-line-argument");
boringssl_cmake.define("CMAKE_CXX_FLAGS", "-Wno-unused-command-line-argument");
}
}

Expand Down

0 comments on commit 7c260f4

Please sign in to comment.