summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-09-17 15:08:38 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-09-20 12:58:43 +0200
commit353beab2f92562db8e036e02f11cb21fee7a1600 (patch)
tree7fb0e9bd98f2dfd38216df8703b0a56b8f450b21 /.github/workflows
parentf064579b539ac10656de0f9b9c69912e4eb49cd4 (diff)
downloadmullvadvpn-353beab2f92562db8e036e02f11cb21fee7a1600.tar.xz
mullvadvpn-353beab2f92562db8e036e02f11cb21fee7a1600.zip
Actions: cache spm
Diffstat (limited to '.github/workflows')
-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 }}