summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ios.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index 4a055735c8..43c8f7bd7d 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -13,10 +13,20 @@ jobs:
strategy:
matrix:
destination: ['platform=iOS Simulator,OS=12.4,name=iPhone 8']
+ env:
+ source_packages_dir: .spm
steps:
- name: Checkout repository
uses: actions/checkout@v2
+ - name: Configure cache
+ uses: actions/cache@v2
+ with:
+ path: ios/${{ env.source_packages_dir }}
+ key: ${{ runner.os }}-spm-${{ hashFiles('ios/**/Package.resolved') }}
+ restore-keys: |
+ ${{ runner.os }}-spm-
+
- name: Setup go-lang
uses: actions/setup-go@v2
with:
@@ -29,7 +39,14 @@ jobs:
- name: Build and test
run: |
- xcodebuild clean test -project MullvadVPN.xcodeproj -scheme MullvadVPNTests -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES
+ xcodebuild test -project MullvadVPN.xcodeproj \
+ -scheme MullvadVPNTests \
+ -destination "${destination}" \
+ -clonedSourcePackagesDirPath "${SOURCE_PACKAGES_PATH}" \
+ CODE_SIGN_IDENTITY="" \
+ CODE_SIGNING_REQUIRED=NO \
+ ONLY_ACTIVE_ARCH=YES
working-directory: ios
env:
destination: ${{ matrix.destination }}
+ SOURCE_PACKAGES_PATH: ${{ env.source_packages_dir }}