-
-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (44 loc) · 2.21 KB
/
ios.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
52
53
54
55
56
57
58
name: Build for iOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Xamarin.iOS
run: brew install --cask xamarin-ios
- name: Download Visual Studio for Mac
run: curl https://download.visualstudio.microsoft.com/download/pr/ceb0ea3f-4db8-46b4-8dc3-8049d27c0107/91eb158e928097dcb6e42ece2db7ebac/visualstudioformac-17.6.7.417-arm64.dmg -o /tmp/vsformac.dmg
- name: Mount Visual Studio for Mac dmg
run: hdiutil attach /tmp/vsformac.dmg
- name: Extract MSBuild
run: cp -R /Volumes/Visual\ Studio/Visual\ Studio.app/Contents/MonoBundle/MSBuild/Current/bin /tmp/msbuild
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies with dotnet restore
run: dotnet restore
- name: Restore dependencies with nuget restore
run: nuget restore Vulcanova/Vulcanova.iOS/Vulcanova.iOS.csproj && nuget restore Vulcanova/Vulcanova/Vulcanova.csproj
- name: Create GoogleService-Info.plist file
run: 'echo "$GOOGLE_SERVICE__INFO_PLIST" > Vulcanova/Vulcanova.iOS/GoogleService-Info.plist'
env:
GOOGLE_SERVICE__INFO_PLIST: ${{ secrets.GOOGLE_SERVICE__INFO_PLIST }}
- name: Select Xcode 15
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app
- name: Build NativeCompanion
run: xcodebuild -project NativeCompanion/NativeCompanion.xcodeproj -scheme NativeWidgetExtension -sdk iphoneos -arch arm64 -derivedDataPath NativeCompanion/DerivedData/NativeCompanion -configuration Release build CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
- name: Build
run: mono '/tmp/msbuild/MSBuild.dll' Vulcanova/Vulcanova.iOS/Vulcanova.iOS.csproj /p:Configuration='Release' /t:Build /p:Platform='iPhone' /p:BuildIpa=true /p:EnableCodeSigning=false
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: Vulcanova/Vulcanova.iOS/bin/iPhone/Release/Vulcanova.iOS.ipa