Commit 9ce5d9e5 authored by Max Lv's avatar Max Lv

Use debug cargo profile in CI

parent a252f19a
...@@ -13,7 +13,7 @@ jobs: ...@@ -13,7 +13,7 @@ jobs:
key: jars-{{ checksum "build.gradle" }} key: jars-{{ checksum "build.gradle" }}
- run: - run:
name: Run Build and Tests name: Run Build and Tests
command: ./gradlew assembleDebug check command: ./gradlew assembleDebug check -PCARGO_PROFILE=debug
- save_cache: - save_cache:
paths: paths:
- ~/.gradle - ~/.gradle
......
...@@ -55,7 +55,7 @@ cargo { ...@@ -55,7 +55,7 @@ cargo {
module = 'src/main/rust/shadowsocks-rust' module = 'src/main/rust/shadowsocks-rust'
libname = 'sslocal' libname = 'sslocal'
targets = ['arm', 'arm64', 'x86', 'x86_64'] targets = ['arm', 'arm64', 'x86', 'x86_64']
profile = 'release' profile = findProperty('CARGO_PROFILE') ?: 'release'
targetIncludes = ["lib${libname}.so"] targetIncludes = ["lib${libname}.so"]
extraCargoBuildArguments = ['--bin', 'sslocal'] extraCargoBuildArguments = ['--bin', 'sslocal']
features { features {
......
Subproject commit e96f1beadd18dcadf18c2792cffe390b4f5a9c35 Subproject commit 6cc2ac327b476219872734ad539a273810a58a7d
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment