From 40fc12d02cda641a8f61d4a66d92fd4ce83cb984 Mon Sep 17 00:00:00 2001 From: Mingshen Sun Date: Wed, 30 Dec 2020 10:44:57 -0800 Subject: [PATCH] Use cache --- .github/workflows/testing.yml | 26 ++++++++++++++++--- .gitignore | 1 - .swift-version | 2 +- pass.xcworkspace/contents.xcworkspacedata | 10 +++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++ 5 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 pass.xcworkspace/contents.xcworkspacedata create mode 100644 pass.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 5422526..fd7b7c0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -11,12 +11,30 @@ jobs: run: | brew install libtool automake cmake carthage go@1.14 swiftlint swiftformat gem install bundler - - name: Preparing dependencies + bundle install + - uses: actions/cache@v2 + id: carthage-cache + with: + path: Carthage + key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} + restore-keys: | + ${{ runner.os }}-carthage- + - uses: actions/cache@v2 + id: pods-cache + with: + path: Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + - name: Carthage + if: steps.carthage-cache.outputs.cache-hit != 'true' + run: ./scripts/wcarthage bootstrap --platform iOS --no-use-binaries --cache-builds + - name: Cocoapods + if: steps.pods-cache.outputs.cache-hit != 'true' + run: bundle exec pod install + - name: GopenPGP run: | export PATH="/usr/local/opt/go@1.14/bin:$PATH" - bundle install - bundle exec pod install - ./scripts/wcarthage bootstrap --platform iOS ./scripts/gopenpgp_build.sh - name: Testing run: bundle exec fastlane test diff --git a/.gitignore b/.gitignore index ce34db5..9b58323 100644 --- a/.gitignore +++ b/.gitignore @@ -45,7 +45,6 @@ playground.xcworkspace # Pods/ Podfile.lock -*.xcworkspace/ # Carthage # diff --git a/.swift-version b/.swift-version index d346e2a..c7cb131 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -5.3 +5.3.1 diff --git a/pass.xcworkspace/contents.xcworkspacedata b/pass.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..0db9a53 --- /dev/null +++ b/pass.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/pass.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pass.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/pass.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + +