-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.34 KB
/
Copy pathci.yml
File metadata and controls
51 lines (39 loc) · 1.34 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
name: ci
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build_pack_ios:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode 26.3
run: sudo xcode-select --switch /Applications/Xcode_26.3.app/Contents/Developer
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Install iOS workload
run: dotnet workload install ios --version 10.0.202
- name: Build iOS wrapper
run: |
bash src/Kapusch.StoreKit2ApisForiOSComponents/Native/iOS/build.sh
- name: Build package project
run: |
dotnet build src/Kapusch.StoreKit2ApisForiOSComponents/Kapusch.StoreKit2ApisForiOSComponents.csproj -c Release
- name: Build sample
run: |
dotnet build samples/Kapusch.StoreKit2.iOS.Sample/Kapusch.StoreKit2.iOS.Sample.csproj -c Release
- name: Pack
run: |
dotnet pack src/Kapusch.StoreKit2ApisForiOSComponents/Kapusch.StoreKit2ApisForiOSComponents.csproj -c Release -o artifacts/nuget
- name: Validate nupkg layout
run: python3 scripts/validate-nupkg.py artifacts/nuget/*.nupkg
- uses: actions/upload-artifact@v4
with:
name: nuget
path: artifacts/nuget/*.nupkg