Skip to content

Commit 819d1a6

Browse files
revert: "ci: cache SPM packages and add timeout in release-publish build-kits (#719)" (#722)
* Revert "ci: cache SPM packages and add timeout in release-publish build-kits (#719)" This reverts commit dbdaef6. * remove Package.resolved from Braze kit (should not be tracked) * ci: restore timeout-minutes: 30 to build-kits job
1 parent dbdaef6 commit 819d1a6

1 file changed

Lines changed: 2 additions & 24 deletions

File tree

.github/workflows/release-publish.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -142,22 +142,6 @@ jobs:
142142
- name: Select Xcode
143143
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
144144

145-
- name: Cache SPM packages
146-
uses: actions/cache@v4
147-
with:
148-
path: DerivedData/SourcePackages
149-
key: spm-${{ runner.os }}-${{ matrix.kit.name }}-${{ hashFiles(format('{0}/Package.swift', matrix.kit.local_path)) }}
150-
restore-keys: |
151-
spm-${{ runner.os }}-${{ matrix.kit.name }}-
152-
spm-${{ runner.os }}-
153-
154-
- name: Resolve SPM dependencies
155-
run: |
156-
SCHEME=$(echo '${{ toJson(matrix.kit.schemes) }}' | jq -r '.[0].scheme')
157-
PROJECT="$(ls -d ${{ matrix.kit.local_path }}/*.xcodeproj | head -1)"
158-
xcodebuild -resolvePackageDependencies -project "$PROJECT" \
159-
-scheme "$SCHEME" -derivedDataPath DerivedData
160-
161145
- name: Build kit xcframeworks
162146
shell: bash
163147
run: |
@@ -201,15 +185,9 @@ jobs:
201185
esac
202186
203187
xcodebuild archive -project "$PROJECT" -scheme "$SCHEME" \
204-
-destination "$PLATFORM_DEVICE" -archivePath "$ARCHIVE_DEVICE" \
205-
-derivedDataPath DerivedData \
206-
-packageCachePath DerivedData/SourcePackages \
207-
$BUILD_SETTINGS
188+
-destination "$PLATFORM_DEVICE" -archivePath "$ARCHIVE_DEVICE" $BUILD_SETTINGS
208189
xcodebuild archive -project "$PROJECT" -scheme "$SCHEME" \
209-
-destination "$PLATFORM_SIM" -archivePath "$ARCHIVE_SIM" \
210-
-derivedDataPath DerivedData \
211-
-packageCachePath DerivedData/SourcePackages \
212-
$BUILD_SETTINGS
190+
-destination "$PLATFORM_SIM" -archivePath "$ARCHIVE_SIM" $BUILD_SETTINGS
213191
214192
XCFRAMEWORK_ARGS+=" -archive ${ARCHIVE_DEVICE}.xcarchive -framework ${MODULE}.framework"
215193
XCFRAMEWORK_ARGS+=" -archive ${ARCHIVE_SIM}.xcarchive -framework ${MODULE}.framework"

0 commit comments

Comments
 (0)