diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-09-17 15:08:38 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-09-20 12:58:43 +0200 |
| commit | 353beab2f92562db8e036e02f11cb21fee7a1600 (patch) | |
| tree | 7fb0e9bd98f2dfd38216df8703b0a56b8f450b21 /.github | |
| parent | f064579b539ac10656de0f9b9c69912e4eb49cd4 (diff) | |
| download | mullvadvpn-353beab2f92562db8e036e02f11cb21fee7a1600.tar.xz mullvadvpn-353beab2f92562db8e036e02f11cb21fee7a1600.zip | |
Actions: cache spm
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ios.yml | 19 |
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 }} |
