-
Notifications
You must be signed in to change notification settings - Fork 128
39 lines (32 loc) · 1.31 KB
/
test_library_evolution.yml
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
name: 📚 Library Evolution Compatibility
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- develop
jobs:
build:
name: Verify
runs-on: macos-14-xlarge # Apple Silicon Runner
steps:
- uses: actions/checkout@v4
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.1'
- name: "xcodebuild clean archive BUILD_LIBRARY_FOR_DISTRIBUTION=YES"
run: |
xcodebuild -version
xcodebuild clean archive -project "${project}" -scheme "${scheme}" -destination 'generic/platform=iOS Simulator' -archivePath "${archivePath}" -skipPackagePluginValidation SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
./Scripts/validate-library-evolution.swift "${archivePath}" "${validationProjectName}"
cd ${validationProjectName}
xcodebuild clean build -scheme "${validationProjectName}" -destination 'generic/platform=iOS Simulator' | xcpretty --utf --color && exit ${PIPESTATUS[0]}
env:
project: 'Adyen.xcodeproj'
archivePath: 'LibraryEvolutionValidationArchive.xcarchive'
scheme: 'AdyenDropIn'
validationProjectName: 'LibraryEvolutionValidation'