-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (37 loc) · 1.67 KB
/
ci.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
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
CI:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Install the iOS workload
run: dotnet workload install ios --ignore-failed-sources
- name: Build device version
working-directory: BSImagePicker
run: xcodebuild -sdk iphoneos -project "BSImagePicker.xcodeproj" -configuration Release
- name: Build simulator version
working-directory: BSImagePicker
run: xcodebuild -sdk iphonesimulator -project "BSImagePicker.xcodeproj" -configuration Release
- name: Copy one of the frameworks as an initial version of the final output
working-directory: BSImagePicker
run: cp -R "build/Release-iphoneos" "build/Release-fat"
- name: Combine module from another build
working-directory: BSImagePicker
run: cp -R "build/Release-iphonesimulator/BSImagePicker.framework/Modules/BSImagePicker.swiftmodule/" "build/Release-fat/BSImagePicker.framework/Modules/BSImagePicker.swiftmodule/"
- name: Combine iphoneos + iphonesimulator configuration
working-directory: BSImagePicker
run: lipo -create -output "build/Release-fat/BSImagePicker.framework/BSImagePicker" "build/Release-iphoneos/BSImagePicker.framework/BSImagePicker" "build/Release-iphonesimulator/BSImagePicker.framework/BSImagePicker"
- name: Restore NuGet packages
run: dotnet restore
- name: Build
run: dotnet msbuild /t:SByteDev_Xamarin_iOS_BSImagePicker /p:Configuration=Release /p:Platform=iPhone