diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-03-22 16:51:18 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-03-22 16:51:18 +0100 |
| commit | d07025afe68ff8d21a9ab51b0075d5fdb5fc47b7 (patch) | |
| tree | de1dd2d666efbc553b4c59027dbae374bfc241a2 | |
| parent | f2df34307fdff859f5be44aa6abeeb9ab5f05bd0 (diff) | |
| parent | 419e1447dcc0116a5d43358505932bdd28ce28d4 (diff) | |
| download | mullvadvpn-d07025afe68ff8d21a9ab51b0075d5fdb5fc47b7.tar.xz mullvadvpn-d07025afe68ff8d21a9ab51b0075d5fdb5fc47b7.zip | |
Merge branch 'add-gh-actions-for-ios'
| -rw-r--r-- | .github/workflows/ios.yml | 30 | ||||
| -rw-r--r-- | ios/MullvadVPN.xcodeproj/project.pbxproj | 2 |
2 files changed, 30 insertions, 2 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml new file mode 100644 index 0000000000..97a4383456 --- /dev/null +++ b/.github/workflows/ios.yml @@ -0,0 +1,30 @@ +name: iOS app CI +on: + push: + paths: + - .github/workflows/ios.yml + - ios/** + # Build if requested manually from the Actions tab + workflow_dispatch: +jobs: + test: + name: Unit tests + runs-on: macos-10.15 + strategy: + matrix: + destination: ['platform=iOS Simulator,OS=12.4,name=iPhone 8'] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Prepare iOS 12 simulator + run: | + sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes + sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime + + - 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=NO + working-directory: ios + env: + destination: ${{ matrix.destination }} diff --git a/ios/MullvadVPN.xcodeproj/project.pbxproj b/ios/MullvadVPN.xcodeproj/project.pbxproj index 394992b99b..35431c363f 100644 --- a/ios/MullvadVPN.xcodeproj/project.pbxproj +++ b/ios/MullvadVPN.xcodeproj/project.pbxproj @@ -1182,7 +1182,6 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = CKG9MXH72F; INFOPLIST_FILE = MullvadVPNTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.2; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1201,7 +1200,6 @@ CODE_SIGN_STYLE = Manual; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = MullvadVPNTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.2; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", |
