Skip to content

Commit

Permalink
Merge pull request #8 from NordSecurity/LLT-5034_upgrade_rust_to_v1_77
Browse files Browse the repository at this point in the history
Update iOS deployment target version
  • Loading branch information
jjanowsk authored Apr 11, 2024
2 parents fdfe51b + d599577 commit 2997e69
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
debug: ['--debug', '']
runs-on: ubuntu-22.04
container:
image: ${{ inputs.target_os == 'linux' && 'ghcr.io/nordsecurity/build-linux-rust1.72.1:v0.0.2' || 'ghcr.io/nordsecurity/build-android-rust1.72.1:v0.0.2' }}
image: ${{ inputs.target_os == 'linux' && 'ghcr.io/nordsecurity/build-linux-rust1.77.2:v0.0.1' || 'ghcr.io/nordsecurity/build-android-rust1.77.2:v0.0.1' }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions rust_build_utils/rust_utils_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"archs": {
"aarch64": {
"rust_target": "aarch64-apple-ios",
"deployment_assert": ("LC_VERSION_MIN_IPHONEOS", "version", "7.0"),
"deployment_assert": ("LC_VERSION_MIN_IPHONEOS", "version", "10.0"),
"env": {
"IPHONEOS_DEPLOYMENT_TARGET": (["7.0"], "set"),
"IPHONEOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
},
},
},
Expand Down
16 changes: 8 additions & 8 deletions rust_sample/ci/build_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


PROJECT_CONFIG = rutils.Project(
rust_version="1.72.1",
rust_version="1.77.2",
root_dir=PROJECT_ROOT,
working_dir=None,
)
Expand Down Expand Up @@ -73,15 +73,15 @@ def post_function(config, packages):
"packages": {
"rust_sample": {
"example_binary": "example_binary",
"rust_sample": "librust_sample.a",
"rust_sample": "librust_sample.dylib",
},
},
},
"tvos": {
"packages": {
"rust_sample": {
"example_binary": "example_binary",
"rust_sample": "librust_sample.a",
"rust_sample": "librust_sample.dylib",
},
},
},
Expand All @@ -103,10 +103,10 @@ def post_function(config, packages):
"archs": {"aarch64": {"env": {"RUSTFLAGS": (" -C debuginfo=2", "set")}}},
"packages": {
"rust_sample": {
"rust_sample": "librust_sample.a",
"rust_sample": "librust_sample.dylib",
},
"rust-sample-lib": {
"rust-sample-lib": "librust_sample_lib.a",
"rust-sample-lib": "librust_sample_lib.dylib",
},
"rust_sample_pack": {
"rust_sample_pack": "rust_sample_pack",
Expand Down Expand Up @@ -168,7 +168,7 @@ def main() -> None:
/ "ffi/rust_sample.h",
}
dbu.create_xcframework(
PROJECT_CONFIG, args.debug, "RustSample", headers, "librust_sample.a"
PROJECT_CONFIG, args.debug, "RustSample", headers, "librust_sample.dylib"
)
elif args.command == "aar":
abu.generate_aar(PROJECT_CONFIG, args)
Expand All @@ -177,14 +177,14 @@ def main() -> None:
PROJECT_CONFIG,
args.debug,
args.header or PROJECT_CONFIG.get_root_dir() / "ffi/rust_sample.h",
"librust_sample.a",
"librust_sample.dylib",
)
elif args.command == "build-tvos-simulator-stubs":
dbu.build_stub_tvos_simulator_libraries(
PROJECT_CONFIG,
args.debug,
args.header or PROJECT_CONFIG.get_root_dir() / "ffi/rust_sample.h",
"librust_sample.a",
"librust_sample.dylib",
)
else:
assert False, f"unsupported command '{args.command}'"
Expand Down

0 comments on commit 2997e69

Please sign in to comment.