File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,28 @@ runs:
2424 shell : bash
2525
2626 - name : 🛻 Restore Binary
27+ id : cache-restore
2728 uses : actions/cache/restore@v3
2829 with :
2930 path : ${{ env.BINARY_PATH }}
3031 key : build-cache-${{ runner.os }}-ENTER_VERSION_NUMBER_HERE
3132
3233 - name : 🧰 Build Swift CLI
34+ if : steps.cache-restore.outputs.cache-hit != 'true'
3335 run : swift build --configuration release
3436 shell : bash
3537
38+ - name : 🪪 Verify binary exists
39+ run : |
40+ if [ ! -f ${{ env.BINARY_PATH }} ]; then
41+ echo "Binary not found at ${{ env.BINARY_PATH }} after build"
42+ exit 1
43+ else
44+ echo "Binary found at ${{ env.BINARY_PATH }}"
45+ fi
46+
3647 - name : 💾 Save Binary
48+ if : steps.cache-restore.outputs.cache-hit != 'true'
3749 uses : actions/cache/save@v3
3850 with :
3951 path : ${{ env.BINARY_PATH }}
4961
5062 echo $PROJECT_FOLDER
5163
52- # Check if the binary exists
53- if [ ! -f $BINARY_PATH ]; then
54- echo "📭 Binary not found at $BINARY_PATH. Exiting..."
55- else
56- echo "📬 Binary found at $BINARY_PATH"
57- fi
58-
5964 echo "▶️ Running binary at $BINARY_PATH"
6065 $BINARY_PATH project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
6166 cat "$PROJECT_FOLDER/logs.txt"
You can’t perform that action at this time.
0 commit comments