From 3316a6ec106b82e4a0b3e4d404ff8139a158d4b9 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Thu, 5 Oct 2023 08:52:41 +0900 Subject: [PATCH] unuse cache on main app --- .github/workflows/ci.yml | 11 ++--------- scripts/test.sh | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a3d535..1b948b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 diff --git a/scripts/test.sh b/scripts/test.sh index 77cf656..acc8bd9 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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