File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
Apple/NetworkExtension/libburrow Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 24
24
path : |
25
25
Apple/PackageCache
26
26
Apple/SourcePackages
27
+ Apple/DerivedData
27
28
key : ${{ runner.os }}-${{ inputs.scheme }}-${{ hashFiles('**/Package.resolved') }}
28
29
restore-keys : |
29
30
${{ runner.os }}-${{ inputs.scheme }}-
@@ -33,17 +34,18 @@ runs:
33
34
run : |
34
35
echo "${{ inputs.app-store-key }}" > AuthKey_${{ inputs.app-store-key-id }}.p8
35
36
36
- xcodebuild clean build-for-testing \
37
+ xcodebuild build-for-testing \
37
38
-allowProvisioningUpdates \
38
39
-allowProvisioningDeviceRegistration \
40
+ -skipPackagePluginValidation \
41
+ -skipMacroValidation \
42
+ -onlyUsePackageVersionsFromResolvedFile \
39
43
-authenticationKeyID ${{ inputs.app-store-key-id }} \
40
44
-authenticationKeyIssuerID ${{ inputs.app-store-key-issuer-id }} \
41
45
-authenticationKeyPath "${PWD}/AuthKey_${{ inputs.app-store-key-id }}.p8" \
42
- -onlyUsePackageVersionsFromResolvedFile \
43
46
-clonedSourcePackagesDirPath SourcePackages \
44
47
-packageCachePath $PWD/PackageCache \
45
- -skipPackagePluginValidation \
46
- -skipMacroValidation \
48
+ -derivedDataPath $PWD/DerivedData \
47
49
-scheme '${{ inputs.scheme }}' \
48
50
-destination '${{ inputs.destination }}' \
49
51
-resultBundlePath BuildResults.xcresult
Original file line number Diff line number Diff line change 37
37
-exportArchive \
38
38
-allowProvisioningUpdates \
39
39
-allowProvisioningDeviceRegistration \
40
+ -skipPackagePluginValidation \
41
+ -skipMacroValidation \
42
+ -onlyUsePackageVersionsFromResolvedFile \
40
43
-authenticationKeyID ${{ inputs.app-store-key-id }} \
41
44
-authenticationKeyIssuerID ${{ inputs.app-store-key-issuer-id }} \
42
45
-authenticationKeyPath "${PWD}/AuthKey_${{ inputs.app-store-key-id }}.p8" \
Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ CARGO_ARGS+=("--lib")
56
56
57
57
# Pass the configuration (Debug or Release) through to cargo
58
58
if [[ $SWIFT_ACTIVE_COMPILATION_CONDITIONS == * DEBUG* ]]; then
59
- CARGO_DIR =" debug"
59
+ CARGO_TARGET_SUBDIR =" debug"
60
60
else
61
61
CARGO_ARGS+=(" --release" )
62
- CARGO_DIR =" release"
62
+ CARGO_TARGET_SUBDIR =" release"
63
63
fi
64
64
65
65
if [[ -x " $( command -v rustup) " ]]; then
70
70
71
71
# Run cargo without the various environment variables set by Xcode.
72
72
# Those variables can confuse cargo and the build scripts it runs.
73
- env -i PATH=" $CARGO_PATH " cargo build " ${CARGO_ARGS[@]} "
73
+ env -i PATH=" $CARGO_PATH " CARGO_TARGET_DIR= " ${CONFIGURATION_TEMP_DIR} /target " cargo build " ${CARGO_ARGS[@]} "
74
74
75
75
mkdir -p " ${BUILT_PRODUCTS_DIR} "
76
76
77
77
# Use `lipo` to merge the architectures together into BUILT_PRODUCTS_DIR
78
78
/usr/bin/xcrun --sdk $PLATFORM_NAME lipo \
79
- -create $( printf " ${PROJECT_DIR} /../ target/%q/${CARGO_DIR } /libburrow.a " " ${RUST_TARGETS[@]} " ) \
79
+ -create $( printf " ${CONFIGURATION_TEMP_DIR} / target/%q/${CARGO_TARGET_SUBDIR } /libburrow.a " " ${RUST_TARGETS[@]} " ) \
80
80
-output " ${BUILT_PRODUCTS_DIR} /libburrow.a"
You can’t perform that action at this time.
0 commit comments