Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3400229
D9196.id31098.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9196.id31098.diff
View Options
diff --git a/native/android/app/build.gradle b/native/android/app/build.gradle
--- a/native/android/app/build.gradle
+++ b/native/android/app/build.gradle
@@ -616,7 +616,8 @@
"-DOPENSSL_VERSION=" + OPENSSL_VERSION,
"-DNDK_VERSION=" + rootProject.ext.ndkVersion,
"-DREACT_NATIVE_SO_DIR=${REACT_NATIVE_SO_DIR}",
- "-DBOOST_VERSION=${BOOST_VERSION}"
+ "-DBOOST_VERSION=${BOOST_VERSION}",
+ "-DCI=${System.getenv('CI')}"
targets "comm_jni_module", "turbomodulejsijni"
}
}
diff --git a/shared/cmake/corrosion-cxx.cmake b/shared/cmake/corrosion-cxx.cmake
--- a/shared/cmake/corrosion-cxx.cmake
+++ b/shared/cmake/corrosion-cxx.cmake
@@ -116,4 +116,18 @@
# For end-user to link into project
add_library(${namespace}::${_LIB_PATH_STEM} ALIAS ${_LIB_PATH_STEM}-total)
+
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(CARGO_BUILD_TYPE "debug")
+ elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
+ set(CARGO_BUILD_TYPE "release")
+ endif()
+
+ if(CI STREQUAL "true" AND (NOT "${CARGO_BUILD_TYPE}" STREQUAL ""))
+ add_custom_command(TARGET ${_LIB_PATH_STEM}_cxxbridge POST_BUILD
+ COMMAND rm -rf cargo/build/${CARGO_BUILD_TYPE}
+ cargo/build/${Rust_CARGO_TARGET}/${CARGO_BUILD_TYPE}
+ COMMENT "Deleting Cargo artifacts for CI build"
+ )
+ endif()
endfunction(add_library_rust)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 6:41 AM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610277
Default Alt Text
D9196.id31098.diff (1 KB)
Attached To
Mode
D9196: [native] Clean up after each Android Rust build in CI
Attached
Detach File
Event Timeline
Log In to Comment