forked from xamarin/GoogleApisForiOSComponents
-
-
Notifications
You must be signed in to change notification settings - Fork 29
58 lines (48 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
58 lines (48 loc) · 1.23 KB
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: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
names:
description: "Cake --names (comma-separated)"
required: false
default: "Google.SignIn"
permissions:
contents: read
jobs:
build:
runs-on: macos-15
env:
CAKE_NAMES: ${{ inputs.names || 'Google.SignIn' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Toolchain versions
run: |
xcodebuild -version
swift --version
xcode-select -p
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore .NET workloads
run: dotnet workload restore Xamarin.Google.sln
- name: Install CocoaPods
run: |
if ! command -v pod >/dev/null 2>&1; then
sudo gem install cocoapods
fi
pod --version
- name: Restore tools
run: dotnet tool restore
- name: Build + pack
run: dotnet tool run dotnet-cake -- --target=nuget --names="${CAKE_NAMES}"
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: nuget
path: output/*.nupkg