File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,28 @@ runs:
1717 with :
1818 repository : " Adyen/adyen-swift-public-api-diff"
1919 # ref: "0.7.0"
20+ - name : Compute binary path
21+ id : compute-path
22+ run : echo "BINARY_PATH=$(swift build --configuration release --show-bin-path)/public-api-diff" >> $GITHUB_ENV
23+
2024 - name : Cache Swift Build
2125 uses : actions/cache@v3
2226 with :
23- path : |
24- swift build --configuration release --show-bin-path
27+ path : ${{ env.BINARY_PATH }}
2528 key : ${{ runner.os }}-swift-build-6ec5ba25648323a388a756636e7f668b04d9f615
2629 # key: ${{ runner.os }}-swift-build-${{ github.sha }}
2730 - name : " Run Diff"
2831 run : |
2932 NEW=${{ inputs.new }}
3033 OLD=${{ inputs.old }}
3134 PLATFORM=${{ inputs.platform }}
35+ BINARY_PATH=${{ env.BINARY_PATH }}
3236 PROJECT_FOLDER=$PWD
33- echo $PROJECT_FOLDER
3437
35- # Build the Swift project in release configuration and get the binary path
36- BINARY_DIR_PATH=$(swift build --configuration release --show-bin-path)
37- BINARY_PATH="$BINARY_DIR_PATH/public-api-diff"
38+ echo $PROJECT_FOLDER
3839
3940 # Check if the binary exists
40- if [ ! -f " $BINARY_PATH" ]; then
41+ if [ ! -f $BINARY_PATH ]; then
4142
4243 echo "📭 Binary not found at $BINARY_PATH. Building the project..."
4344 swift build --configuration release
You can’t perform that action at this time.
0 commit comments