blob: 07499a5849f25410298146528a5c1e56b69ca5ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
---
name: iOS Validate build schemas
on:
pull_request:
types:
- closed
branches:
- main
paths:
- .github/workflows/ios.yml
- .github/workflows/ios-validate-build-schemas.yml
- ios/.swift-format
- ios/**/*.swift
- ios/**/*.xctestplan
- Cargo.toml
workflow_dispatch:
permissions: {}
jobs:
test:
if: github.event.pull_request.merged == true
name: Validate build schemas
runs-on: macos-15-xlarge
env:
SOURCE_PACKAGES_PATH: .spm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup project
uses: ./.github/actions/ios/setup-project-toolchain
- name: Run build validation for Staging and MockRelease configurations as well as the MullvadVPNUITests target
run: |
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project MullvadVPN.xcodeproj \
-scheme MullvadVPN \
-configuration MockRelease \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
build
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project MullvadVPN.xcodeproj \
-scheme MullvadVPN \
-configuration Staging \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
build
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project MullvadVPN.xcodeproj \
-scheme MullvadVPNUITests \
-configuration Debug \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
build
working-directory: ios/
|