Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.bitrise*
.idea
.vscode
README.md.backup
_tmp/
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# bitrise-step-xcode-enable-compilation-cache
# Enable Xcode Compilation Cache

TBD

<details>
<summary>Description</summary>

TBD
88 changes: 88 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

workflows:
local_test:
envs:
- LLVM_PROXY_TARGET_ADDR: grpc://localhost:6666
- APP_ID: 322a005426441b60
- ORG_ID: 14a2a1e2a526087e
steps:
- script@1:
title: Cleanup
inputs:
- content: |-
#!/bin/bash
set -e
rm -rf ./testApp
rm -rf ~/Library/Developer/Xcode/DerivedData/CompilationCache.noindex
- path::./:
inputs:
- verbose: 'true'
- script@1:
title: Print Environment Variables
inputs:
- content: |-
#!/bin/bash
set -e
echo "BITRISE_XCODE_COMPILATION_CACHE_ENABLED: $BITRISE_XCODE_COMPILATION_CACHE_ENABLED"
echo "BITRISE_XCODE_COMPILATION_CACHE_ARGUMENTS: $BITRISE_XCODE_COMPILATION_CACHE_ARGUMENTS"
echo "BITRISE_XCODE_ADDITIONAL_ARGS: $BITRISE_XCODE_ADDITIONAL_ARGS"
echo "BITRISE_XCODE_COMPILATION_CACHE_PROXY_PID: $BITRISE_XCODE_COMPILATION_CACHE_PROXY_PID"
- git::https://github.com/bitrise-steplib/bitrise-step-simple-git-clone.git:
inputs:
- repository_url: https://github.com/pointfreeco/swift-composable-architecture.git
- clone_into_dir: ./testApp
- branch: main
- change-workdir@1:
inputs:
- path: ./testApp/Examples/TicTacToe
- script@1:
title: Build
inputs:
- content: |-
#!/bin/bash
set -eo pipefail

xcodebuild clean \
-project "/Users/balazshajagos/dev/ios/bitrise-step-xcode-enable-compilation-cache/testApp/Examples/TicTacToe/TicTacToe.xcodeproj" \
-scheme "TicTacToe" \
-configuration "Debug" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-skipMacroValidation \

xcodebuild build-for-testing \
-project "/Users/balazshajagos/dev/ios/bitrise-step-xcode-enable-compilation-cache/testApp/Examples/TicTacToe/TicTacToe.xcodeproj" \
-scheme "TicTacToe" \
-configuration "Debug" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-skipMacroValidation \
SWIFT_ENABLE_EXPLICIT_MODULES=YES \
COMPILATION_CACHE_ENABLE_CACHING=YES \
SWIFT_ENABLE_COMPILE_CACHE=1 \
COMPILATION_CACHE_REMOTE_SERVICE_PATH=/tmp/llvmproxy.sock \
COMPILATION_CACHE_ENABLE_PLUGIN=1
- script@1:
title: Kill proxy
inputs:
- content: |-
#!/bin/bash
set -e
kill $BITRISE_XCODE_COMPILATION_CACHE_PROXY_PID

check:
steps:
- git::https://github.com/bitrise-steplib/steps-check.git: { }

e2e:
steps:
- git::https://github.com/bitrise-steplib/steps-check.git:
inputs:
- workflow: e2e

generate_readme:
steps:
- git::https://github.com/bitrise-steplib/steps-readme-generator.git@main:
inputs:
- example_section: docs/examples.md
- contrib_section: docs/contributing.md
1 change: 1 addition & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Note:** this step's end-to-end tests (defined in `e2e/bitrise.yml`) are working with secrets which are intentionally not stored in this repo. External contributors won't be able to run those tests. Don't worry, if you open a PR with your contribution, we will help with running tests and make sure that they pass.
1 change: 1 addition & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

9 changes: 9 additions & 0 deletions e2e/bitrise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

app:
envs: { }

workflows: { }

step_bundles: { }
26 changes: 26 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module github.com/bitrise-steplib/bitrise-step-enable-xcode-compilation-cache

go 1.17

require (
github.com/bitrise-io/go-steputils v1.0.6
github.com/bitrise-io/go-steputils/v2 v2.0.0-alpha.34
github.com/bitrise-io/go-utils v1.0.15
github.com/bitrise-io/go-utils/v2 v2.0.0-alpha.23
github.com/bitrise-steplib/steps-git-clone v0.0.0-20250514071414-399de1bb3155
)

require (
github.com/bitrise-io/bitrise-init v0.0.0-20210518121553-1e678625c45d // indirect
github.com/bitrise-io/envman v0.0.0-20210517135508-b2b4fe89eac5 // indirect
github.com/bitrise-io/goinp v0.0.0-20210504152833-8559b0680ab1 // indirect
github.com/bitrise-steplib/steps-authenticate-host-with-netrc v0.0.0-20230711084209-91fcd09b2017 // indirect
github.com/gofrs/uuid/v5 v5.2.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
golang.org/x/crypto v0.6.1-0.20230215202200-ebe92624d142 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.5.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading