Skip to content

Commit

Permalink
unuse cache on main app
Browse files Browse the repository at this point in the history
  • Loading branch information
417-72KI committed Oct 4, 2023
1 parent 9d79fda commit 3316a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer
cache-name: 'test'
steps:
- uses: actions/checkout@v4
- name: Cache SPM build directory
Expand All @@ -42,15 +43,6 @@ jobs:
${{ runner.os }}-spm-${{ env.cache-name }}-
${{ runner.os }}-spm-
${{ runner.os }}-
- name: Cache DerivedData
uses: actions/cache@v3
with:
path: DerivedData
key: ${{ runner.os }}-xcode-derived-data-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-xcode-derived-data-${{ env.cache-name }}-
${{ runner.os }}-xcode-derived-data-
${{ runner.os }}-
- name: Disable SwiftLint Plugin
run: sed -i -e 's/.*SwiftLint.*//g' Package.swift
- name: Test
Expand All @@ -70,6 +62,7 @@ jobs:
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer
cache-name: 'test-demo'
steps:
- uses: actions/checkout@v4
- name: Cache SPM build directory
Expand Down
1 change: 0 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ xcrun --sdk macosx xcodebuild \
-enableCodeCoverage YES \
-scheme "${SCHEME}" \
-destination "platform=macOS" \
-derivedDataPath 'DerivedData' \
-clonedSourcePackagesDirPath '.build/SourcePackages' \
-resultBundlePath "$XCRESULT_PATH" \
clean test | xcpretty

0 comments on commit 3316a6e

Please sign in to comment.