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 2222 with :
2323 path : |
2424 $(swift build --configuration release --show-bin-path)
25- key : ${{ runner.os }}-swift-build-${{ github.sha }}
25+ key : ${{ runner.os }}-swift-build-6ec5ba25648323a388a756636e7f668b04d9f615
26+ # key: ${{ runner.os }}-swift-build-${{ github.sha }}
2627 - name : " Run Diff"
2728 run : |
2829 NEW=${{ inputs.new }}
@@ -33,22 +34,22 @@ runs:
3334
3435 # Build the Swift project in release configuration and get the binary path
3536 BINARY_DIR_PATH=$(swift build --configuration release --show-bin-path)
36- BINARY_PATH="$BINARY_DIR_PATH/public-api-diff"
37+ BINARY_PATH="$BINARY_DIR_PATH/public-api-diff"
3738
3839 # Check if the binary exists
39- if [ ! -f "$BINARY " ]; then
40- echo "Binary not found. Building the project..."
40+ if [ ! -f "$BINARY_PATH " ]; then
41+ echo "📭 Binary not found. Building the project..."
4142 swift build --configuration release
4243 # Check if the build was successful
4344 if [ $? -ne 0 ]; then
4445 echo "Build failed"
45- exit 1
46+ exit 1
4647 fi
4748 else
48- echo "Binary found at $BINARY_PATH"
49+ echo "📬 Binary found at $BINARY_PATH"
4950 fi
5051
51- # Run the binary $BINARY
52+ echo "▶️ Running binary at $BINARY_PATH"
5253 $BINARY_PATH project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
5354 cat "$PROJECT_FOLDER/logs.txt"
5455
You can’t perform that action at this time.
0 commit comments